We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1e0762 commit 12b4a94Copy full SHA for 12b4a94
Dumper/PhpDumper.php
@@ -1889,7 +1889,7 @@ private function isSingleUsePrivateNode(ServiceReferenceGraphNode $node): bool
1889
if (!$value = $edge->getSourceNode()->getValue()) {
1890
continue;
1891
}
1892
- if ($edge->isLazy() || !$value->isShared()) {
+ if ($edge->isLazy() || !$value instanceof Definition || !$value->isShared()) {
1893
return false;
1894
1895
$ids[$edge->getSourceNode()->getId()] = true;
0 commit comments