Skip to content

Commit

Permalink
Merge pull request #3 from jbarton123/task/Add-null-check-to-service-…
Browse files Browse the repository at this point in the history
…container-delegator

Add a null check for the service container delegator
  • Loading branch information
Tibor Kotosz authored Apr 26, 2019
2 parents 0637f73 + eed3bf9 commit 098a31d
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 098a31d

Please sign in to comment.