Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Feb 2, 2025
1 parent 840fb8e commit c1e1ef1
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/Exception/ErrorException.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,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 readonly array $backtrace = [],
) {
public function __construct(string $message = '', int $code = 0, int $severity = 1, string $filename = __FILE__, int $line = __LINE__, Exception $previous = null, private readonly array $backtrace = []) {
parent::__construct($message, $code, $severity, $filename, $line, $previous);
$this->addXDebugTraceToFatalIfAvailable();
}
Expand Down

0 comments on commit c1e1ef1

Please sign in to comment.