Skip to content

Commit

Permalink
Add a null check for the service container delegator
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Barton committed Apr 26, 2019
1 parent 8786cb0 commit eed3bf9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ public function __construct(array $symfonyServiceContainers)

public function has($id)
{
if (is_null($id)) {
return false;
}

if (parent::has($id)) {
return true;
}
Expand Down

0 comments on commit eed3bf9

Please sign in to comment.