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:
@@ -19,13 +19,11 @@ class AutowiringFailedException extends RuntimeException
|
||||
private string $serviceId;
|
||||
private ?\Closure $messageCallback = null;
|
||||
|
||||
public function __construct(string $serviceId, string|\Closure $message = '', int $code = 0, \Throwable $previous = null)
|
||||
public function __construct(string $serviceId, string|\Closure $message = '', int $code = 0, ?\Throwable $previous = null)
|
||||
{
|
||||
$this->serviceId = $serviceId;
|
||||
|
||||
if ($message instanceof \Closure
|
||||
&& (\function_exists('xdebug_is_enabled') ? xdebug_is_enabled() : \function_exists('xdebug_info'))
|
||||
) {
|
||||
if ($message instanceof \Closure && \function_exists('xdebug_is_enabled') && xdebug_is_enabled()) {
|
||||
$message = $message();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user