mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Merge pull request #6472 from paulbalandan/shutdown-handler
Fix fatal error gets turned to `0` severity on shutdown handler
This commit is contained in:
commit
e2606a80b7
@ -177,7 +177,7 @@ class Exceptions
|
||||
['type' => $type, 'message' => $message, 'file' => $file, 'line' => $line] = $error;
|
||||
|
||||
if (in_array($type, [E_ERROR, E_CORE_ERROR, E_COMPILE_ERROR, E_PARSE], true)) {
|
||||
$this->exceptionHandler(new ErrorException($message, $type, 0, $file, $line));
|
||||
$this->exceptionHandler(new ErrorException($message, 0, $type, $file, $line));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user