Skip to content

Commit e0bd2a2

Browse files
minor symfony#20741 [DependencyInjection] fix a test checking for a value (xabbuh)
This PR was merged into the 2.7 branch. Discussion ---------- [DependencyInjection] fix a test checking for a value | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | 5f62f01 | License | MIT | Doc PR | Commits ------- aea0478 fix a test checking for a value
2 parents 7ef0951 + aea0478 commit e0bd2a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/DependencyInjection/Compiler/CheckCircularReferencesPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ private function checkOutEdges(array $edges)
6262
if (empty($this->checkedNodes[$id])) {
6363

6464
// don't check circular dependencies for lazy services
65-
if (!$node->getValue() && $node->getValue()->isLazy()) {
65+
if (!$node->getValue() || !$node->getValue()->isLazy()) {
6666
$searchKey = array_search($id, $this->currentPath);
6767
$this->currentPath[] = $id;
6868

0 commit comments

Comments
 (0)