Skip to content

Commit

Permalink
compatible PHP5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
JanHuang committed Jan 23, 2018
1 parent d29acdb commit b5d7bad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function add($name, $service)
*/
public function get($name)
{
$name = $this->map[$name] ?? $name;
$name = isset($this->map[$name]) ? $this->map[$name] : $name;

if (!isset($this->services[$name])) {
throw new NotFoundException($name);
Expand Down

0 comments on commit b5d7bad

Please sign in to comment.