Skip to content

Commit

Permalink
minor #20741 [DependencyInjection] fix a test checking for a value (x…
Browse files Browse the repository at this point in the history
…abbuh)

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
  • Loading branch information
nicolas-grekas committed Dec 3, 2016
2 parents 7ef0951 + aea0478 commit e0bd2a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private function checkOutEdges(array $edges)
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;

Expand Down

0 comments on commit e0bd2a2

Please sign in to comment.