Skip to content

Commit

Permalink
Fixed notice for undefined-index (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneBruines authored and marmichalski committed Sep 12, 2019
1 parent 3299305 commit 2ce1dcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ServiceMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function getServiceClassFromNode(Node $node): ?string
public function getComponentClassById(string $id): ?string
{
// Special case in which the component is already initialized
if (is_object($this->components[$id])) {
if (isset($this->components[$id]) && is_object($this->components[$id])) {
return get_class($this->components[$id]);
}

Expand Down

0 comments on commit 2ce1dcd

Please sign in to comment.