mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-30 05:58:46 +02:00
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:
@@ -25,18 +25,18 @@ class ClosureLoader extends Loader
|
||||
{
|
||||
private ContainerBuilder $container;
|
||||
|
||||
public function __construct(ContainerBuilder $container, string $env = null)
|
||||
public function __construct(ContainerBuilder $container, ?string $env = null)
|
||||
{
|
||||
$this->container = $container;
|
||||
parent::__construct($env);
|
||||
}
|
||||
|
||||
public function load(mixed $resource, string $type = null): mixed
|
||||
public function load(mixed $resource, ?string $type = null): mixed
|
||||
{
|
||||
return $resource($this->container, $this->env);
|
||||
}
|
||||
|
||||
public function supports(mixed $resource, string $type = null): bool
|
||||
public function supports(mixed $resource, ?string $type = null): bool
|
||||
{
|
||||
return $resource instanceof \Closure;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user