[DI] fix edge case in InlineServiceDefinitionsPass
This commit is contained in:
parent
e955506d83
commit
8bd2bbfb1c
@ -92,6 +92,10 @@ class InlineServiceDefinitionsPass extends AbstractRecursivePass implements Repe
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!$graph->hasNode($id)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (!$definition->isShared()) {
|
if (!$definition->isShared()) {
|
||||||
foreach ($graph->getNode($id)->getInEdges() as $edge) {
|
foreach ($graph->getNode($id)->getInEdges() as $edge) {
|
||||||
if ($edge->isWeak()) {
|
if ($edge->isWeak()) {
|
||||||
@ -106,10 +110,6 @@ class InlineServiceDefinitionsPass extends AbstractRecursivePass implements Repe
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$graph->hasNode($id)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($this->currentId == $id) {
|
if ($this->currentId == $id) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user