We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 550df5a commit cec98c1Copy full SHA for cec98c1
src/Symfony/Component/DependencyInjection/Compiler/CheckReferenceValidityPass.php
@@ -72,8 +72,8 @@ public function process(ContainerBuilder $container)
72
$this->currentScopeChildren = array_keys($scopes);
73
$this->currentScopeAncestors = array();
74
} elseif (ContainerInterface::SCOPE_PROTOTYPE !== $scope) {
75
- $this->currentScopeChildren = $children[$scope];
76
- $this->currentScopeAncestors = $ancestors[$scope];
+ $this->currentScopeChildren = isset($children[$scope]) ? $children[$scope] : array();
+ $this->currentScopeAncestors = isset($ancestors[$scope]) ? $ancestors[$scope] : array();
77
}
78
79
$this->validateReferences($definition->getArguments());
0 commit comments