mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +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:
@@ -20,11 +20,11 @@ final class FormatException extends \LogicException implements ExceptionInterfac
|
||||
{
|
||||
private FormatExceptionContext $context;
|
||||
|
||||
public function __construct(string $message, FormatExceptionContext $context, int $code = 0, \Throwable $previous = null)
|
||||
public function __construct(string $message, FormatExceptionContext $context, int $code = 0, ?\Throwable $previous = null)
|
||||
{
|
||||
$this->context = $context;
|
||||
|
||||
parent::__construct(sprintf("%s in \"%s\" at line %d.\n%s", $message, $context->getPath(), $context->getLineno(), $context->getDetails()), $code, $previous);
|
||||
parent::__construct(\sprintf("%s in \"%s\" at line %d.\n%s", $message, $context->getPath(), $context->getLineno(), $context->getDetails()), $code, $previous);
|
||||
}
|
||||
|
||||
public function getContext(): FormatExceptionContext
|
||||
|
||||
Reference in New Issue
Block a user