Skip to content

Commit

Permalink
fix BC
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Jan 30, 2024
1 parent fdb5f82 commit 58b0112
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions src/Exception/ErrorException.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,7 @@
/**
* `ErrorException` represents a PHP error.
*
* @psalm-type DebugBacktraceType = list<array{
* args?: list<mixed>,
* class?: class-string,
* file?: string,
* function: string,
* line?: int,
* object?: object,
* type?: string
* }>
* @psalm-type DebugBacktraceType = list<array{args?:list<mixed>,class?:class-string,file?:string,function:string,line?:int,object?:object,type?:string}>
*/
class ErrorException extends \ErrorException implements FriendlyExceptionInterface
{
Expand All @@ -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();
}
Expand Down

0 comments on commit 58b0112

Please sign in to comment.