Skip to content

Commit 2ce1dcd

Browse files
EtienneBruinesmarmichalski
authored andcommitted
Fixed notice for undefined-index (#18)
1 parent 3299305 commit 2ce1dcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceMap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function getServiceClassFromNode(Node $node): ?string
7474
public function getComponentClassById(string $id): ?string
7575
{
7676
// Special case in which the component is already initialized
77-
if (is_object($this->components[$id])) {
77+
if (isset($this->components[$id]) && is_object($this->components[$id])) {
7878
return get_class($this->components[$id]);
7979
}
8080

0 commit comments

Comments
 (0)