Skip to content

Commit 12b4a94

Browse files
committed
bug #33942 [DI] Add extra type check to php dumper
1 parent e1e0762 commit 12b4a94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dumper/PhpDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1889,7 +1889,7 @@ private function isSingleUsePrivateNode(ServiceReferenceGraphNode $node): bool
18891889
if (!$value = $edge->getSourceNode()->getValue()) {
18901890
continue;
18911891
}
1892-
if ($edge->isLazy() || !$value->isShared()) {
1892+
if ($edge->isLazy() || !$value instanceof Definition || !$value->isShared()) {
18931893
return false;
18941894
}
18951895
$ids[$edge->getSourceNode()->getId()] = true;

0 commit comments

Comments
 (0)