mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-18 23:08:46 +02:00
N°8834 - Add compatibility with PHP 8.4 (#819)
* N°8834 - Add compatibility with PHP 8.4 * Rollback of scssphp/scssphp version upgrade due to compilation error
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