Skip to content

Commit fad7a7f

Browse files
committed
fix a test checking for a value
1 parent a40f340 commit fad7a7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)