Skip to content

Commit 39281af

Browse files
committed
[CI] CS
1 parent b94ddc8 commit 39281af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bundle/Core/DependencyInjection/Configuration/ConfigResolver/SiteAccessGroupConfigResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ protected function resolverHasParameter(SiteAccess $siteAccess, string $paramNam
7676
protected function resolverHasParameterForGroup(SiteAccessGroup $siteAccessGroup, string $paramName, string $namespace): bool
7777
{
7878
if ($this->container === null) {
79-
return false;
79+
throw new LogicException('Container is not set.');
8080
}
8181

8282
$groupScopeParamName = $this->resolveScopeRelativeParamName($paramName, $namespace, $siteAccessGroup->getName());
@@ -107,7 +107,7 @@ protected function getParameterFromResolver(SiteAccess $siteAccess, string $para
107107
protected function getParameterFromResolverForGroup(SiteAccessGroup $siteAccessGroup, string $paramName, string $namespace)
108108
{
109109
if ($this->container === null) {
110-
throw new ParameterNotFoundException($paramName, $namespace, [$siteAccessGroup]);
110+
throw new LogicException('Container is not set.');
111111
}
112112

113113
$groupScopeParamName = $this->resolveScopeRelativeParamName($paramName, $namespace, $siteAccessGroup->getName());

0 commit comments

Comments
 (0)