Merge branch '4.1' into 4.2
* 4.1: [DI] fix InlineServiceDefinitionsPass' fix
This commit is contained in:
commit
cb57f87ad1
@ -164,11 +164,11 @@ class InlineServiceDefinitionsPass extends AbstractRecursivePass implements Repe
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!$this->graph->hasNode($id)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!$definition->isShared()) {
|
||||
if (!$this->graph->hasNode($id)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
foreach ($this->graph->getNode($id)->getInEdges() as $edge) {
|
||||
$srcId = $edge->getSourceNode()->getId();
|
||||
$this->connectedIds[$srcId] = true;
|
||||
@ -184,6 +184,10 @@ class InlineServiceDefinitionsPass extends AbstractRecursivePass implements Repe
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!$this->graph->hasNode($id)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if ($this->currentId == $id) {
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user