8000 fix a test checking for a value · symfony/symfony@aea0478 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit aea0478

Browse files
committed
fix a test checking for a value
1 parent 7ef0951 commit aea0478

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)
0