mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +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:
@@ -23,7 +23,7 @@ abstract class Loader implements LoaderInterface
|
||||
protected $resolver;
|
||||
protected $env;
|
||||
|
||||
public function __construct(string $env = null)
|
||||
public function __construct(?string $env = null)
|
||||
{
|
||||
$this->env = $env;
|
||||
}
|
||||
@@ -46,7 +46,7 @@ abstract class Loader implements LoaderInterface
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function import(mixed $resource, string $type = null)
|
||||
public function import(mixed $resource, ?string $type = null)
|
||||
{
|
||||
return $this->resolve($resource, $type)->load($resource, $type);
|
||||
}
|
||||
@@ -56,7 +56,7 @@ abstract class Loader implements LoaderInterface
|
||||
*
|
||||
* @throws LoaderLoadException If no loader is found
|
||||
*/
|
||||
public function resolve(mixed $resource, string $type = null): LoaderInterface
|
||||
public function resolve(mixed $resource, ?string $type = null): LoaderInterface
|
||||
{
|
||||
if ($this->supports($resource, $type)) {
|
||||
return $this;
|
||||
|
||||
Reference in New Issue
Block a user