/**
* @param string[] $scopes
*/
private function shouldEndFile(array
$scopes, string
$source): bool
{ if ($this->templateScopeDetector === null
) { // @deprecated tag:v6.6.0 - Remove this check
return false;
} return !\
array_intersect($this->templateScopeDetector->
getScopes(),
$scopes) && !
str_starts_with($source, '@Storefront'
);
} private function convertExpressionToArray(AbstractExpression
$expression): mixed
{ if ($expression instanceof ArrayExpression
) { $array =
[];
foreach ($expression->
getKeyValuePairs() as $pair) { if (!
$pair['key'
] instanceof ConstantExpression
) { throw AdapterException::
unexpectedTwigExpression($pair['key'
]);
}