Skip to content

Commit

Permalink
Update Foundation.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanson authored Sep 17, 2019
1 parent 665decc commit b52a3f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Foundation.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function setConfig(array $config)

public function getConfig($key = null)
{
return $key ? $this->config[$key] : $this->config;
return $key ? ($this->config[$key] ?? null) : $this->config;
}

/**
Expand All @@ -127,4 +127,4 @@ public function __set($id, $value)
{
$this->offsetSet($id, $value);
}
}
}

0 comments on commit b52a3f4

Please sign in to comment.