Skip to content

Commit

Permalink
try to use ErrorException instead of FataError
Browse files Browse the repository at this point in the history
  • Loading branch information
rizqyhi committed Nov 4, 2023
1 parent 2728546 commit 635ff0d
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/Illuminate/Exception/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,14 +277,13 @@ protected function displayException($exception)
$severity = \E_ERROR;
}

$e = new FatalError($exception->getMessage(), $exception->getCode(), [
'type' => $severity,
'message' => $exception->getMessage(),
'file' => $exception->getFile(),
'line' => $exception->getLine(),
], trace: $exception->getTrace());

return $displayer->display($e);
$exception = new ErrorException(
$exception->getMessage(),
$exception->getCode(),
$severity,
$exception->getFile(),
$exception->getLine(),
);
}

return $displayer->display($exception);
Expand Down

0 comments on commit 635ff0d

Please sign in to comment.