[DependencyInjection] fixed PHP notice when the scope is not defined
This commit is contained in:
parent
550df5a85a
commit
cec98c1d7a
@ -72,8 +72,8 @@ class CheckReferenceValidityPass implements CompilerPassInterface
|
||||
$this->currentScopeChildren = array_keys($scopes);
|
||||
$this->currentScopeAncestors = array();
|
||||
} elseif (ContainerInterface::SCOPE_PROTOTYPE !== $scope) {
|
||||
$this->currentScopeChildren = $children[$scope];
|
||||
$this->currentScopeAncestors = $ancestors[$scope];
|
||||
$this->currentScopeChildren = isset($children[$scope]) ? $children[$scope] : array();
|
||||
$this->currentScopeAncestors = isset($ancestors[$scope]) ? $ancestors[$scope] : array();
|
||||
}
|
||||
|
||||
$this->validateReferences($definition->getArguments());
|
||||
|
Reference in New Issue
Block a user