Skip to content

Commit

Permalink
Fix the build on PHP 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Jun 4, 2017
1 parent dd4a72c commit ecab701
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Container.php
Expand Up @@ -212,6 +212,10 @@ public function has($name)
*/
public function injectOn($instance)
{
if (!$instance) {
return $instance;
}

$objectDefinition = $this->definitionSource->getDefinition(get_class($instance));
if (! $objectDefinition instanceof ObjectDefinition) {
return $instance;
Expand Down

0 comments on commit ecab701

Please sign in to comment.