From 58b01128773ea8d20efc3066f3e249876ee34327 Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Tue, 30 Jan 2024 15:45:56 +0300 Subject: [PATCH] fix BC --- src/Exception/ErrorException.php | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/src/Exception/ErrorException.php b/src/Exception/ErrorException.php index 4e15523..3751e5b 100644 --- a/src/Exception/ErrorException.php +++ b/src/Exception/ErrorException.php @@ -15,15 +15,7 @@ /** * `ErrorException` represents a PHP error. * - * @psalm-type DebugBacktraceType = list, - * class?: class-string, - * file?: string, - * function: string, - * line?: int, - * object?: object, - * type?: string - * }> + * @psalm-type DebugBacktraceType = list,class?:class-string,file?:string,function:string,line?:int,object?:object,type?:string}> */ class ErrorException extends \ErrorException implements FriendlyExceptionInterface { @@ -48,15 +40,7 @@ class ErrorException extends \ErrorException implements FriendlyExceptionInterfa /** * @psalm-param DebugBacktraceType $backtrace */ - public function __construct( - string $message = '', - int $code = 0, - int $severity = 1, - string $filename = __FILE__, - int $line = __LINE__, - Exception $previous = null, - private array $backtrace = [], - ) { + public function __construct(string $message = '', int $code = 0, int $severity = 1, string $filename = __FILE__, int $line = __LINE__, Exception $previous = null, private array $backtrace = []) { parent::__construct($message, $code, $severity, $filename, $line, $previous); $this->addXDebugTraceToFatalIfAvailable(); }