Skip to content

Commit

Permalink
Correct container function
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyklay committed Dec 9, 2018
1 parent b02466d commit 946b53b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bootstrap/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function container()
return $default;
}

if ($default instanceof DiInterface) {
if (null !== $default) {
return call_user_func_array([$default, 'getShared'], $args);
}

Expand Down

0 comments on commit 946b53b

Please sign in to comment.