N°8017 - Security - dependabot - Symfony's VarDumper vulnerable to un… (#731)

Upgrade all Symfony components to last security fix (~6.4.0)
This commit is contained in:
Benjamin Dalsass
2025-08-06 08:54:56 +02:00
committed by GitHub
parent 603340b852
commit cdbcd14767
608 changed files with 5020 additions and 3793 deletions

View File

@@ -30,7 +30,7 @@ class ExpressionLanguageProvider implements ExpressionFunctionProviderInterface
private ?\Closure $getEnv;
public function __construct(callable $serviceCompiler = null, \Closure $getEnv = null)
public function __construct(?callable $serviceCompiler = null, ?\Closure $getEnv = null)
{
$this->serviceCompiler = null === $serviceCompiler ? null : $serviceCompiler(...);
$this->getEnv = $getEnv;
@@ -45,7 +45,7 @@ class ExpressionLanguageProvider implements ExpressionFunctionProviderInterface
new ExpressionFunction('env', fn ($arg) => sprintf('$container->getEnv(%s)', $arg), function (array $variables, $value) {
if (!$this->getEnv) {
throw new LogicException('You need to pass a getEnv closure to the expression langage provider to use the "env" function.');
throw new LogicException('You need to pass a getEnv closure to the expression language provider to use the "env" function.');
}
return ($this->getEnv)($value);