bug #33942 [DI] Add extra type check to php dumper

This commit is contained in:
Gildas Quéméner 2019-10-11 18:56:51 +02:00
parent 9c635615de
commit b17ebdf081
No known key found for this signature in database
GPG Key ID: B9976FC98B7ABF43

View File

@ -1889,7 +1889,7 @@ EOF;
if (!$value = $edge->getSourceNode()->getValue()) {
continue;
}
if ($edge->isLazy() || !$value->isShared()) {
if ($edge->isLazy() || !$value instanceof Definition || !$value->isShared()) {
return false;
}
$ids[$edge->getSourceNode()->getId()] = true;