Move to PHPStan level 5

This commit is contained in:
Fabien Potencier
2026-02-07 08:50:23 +01:00
parent 825af0e7f1
commit b3cbcedced
10 changed files with 29 additions and 7 deletions
+4 -1
View File
@@ -2041,7 +2041,10 @@ final class CoreExtension extends AbstractExtension
$dep->triggerDeprecation($src->getPath() ?: $src->getName(), $line);
*/
return new GetAttrExpression($args[0], $args[1], $args[2] ?? null, Template::ANY_CALL, $line);
/** @var ArrayExpression|ContextVariable|null $arguments */
$arguments = $args[2] ?? null;
return new GetAttrExpression($args[0], $args[1], $arguments, Template::ANY_CALL, $line);
}
/**