From aea04784513aff2e9e56cfe692746597ccb2392e Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Sat, 3 Dec 2016 14:48:59 +0100 Subject: [PATCH] fix a test checking for a value --- .../Compiler/CheckCircularReferencesPass.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/DependencyInjection/Compiler/CheckCircularReferencesPass.php b/src/Symfony/Component/DependencyInjection/Compiler/CheckCircularReferencesPass.php index 11856b6cbc..156bcc0c3a 100644 --- a/src/Symfony/Component/DependencyInjection/Compiler/CheckCircularReferencesPass.php +++ b/src/Symfony/Component/DependencyInjection/Compiler/CheckCircularReferencesPass.php @@ -62,7 +62,7 @@ class CheckCircularReferencesPass implements CompilerPassInterface if (empty($this->checkedNodes[$id])) { // don't check circular dependencies for lazy services - if (!$node->getValue() && $node->getValue()->isLazy()) { + if (!$node->getValue() || !$node->getValue()->isLazy()) { $searchKey = array_search($id, $this->currentPath); $this->currentPath[] = $id;