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(); }