8000 bug #33942 [DI] Add extra type check to php dumper · symfony/symfony@b17ebdf · GitHub
[go: up one dir, main page]

Skip to content

Commit b17ebdf

Browse files
committed
bug #33942 [DI] Add extra type check to php dumper
1 parent 9c63561 commit b17ebdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php

Lines changed: 1 addition & 73CF amp; 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)
0