Merge pull request #6472 from paulbalandan/shutdown-handler

Fix fatal error gets turned to `0` severity on shutdown handler
This commit is contained in:
kenjis 2022-09-03 07:05:56 +09:00 committed by GitHub
commit e2606a80b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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