Skip to content

Commit f94fb2b

Browse files
committed
Fix fatal error gets turned to 0 severity on shutdown handler
1 parent 3ba1eb5 commit f94fb2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Debug/Exceptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public function shutdownHandler()
177177
['type' => $type, 'message' => $message, 'file' => $file, 'line' => $line] = $error;
178178

179179
if (in_array($type, [E_ERROR, E_CORE_ERROR, E_COMPILE_ERROR, E_PARSE], true)) {
180-
$this->exceptionHandler(new ErrorException($message, $type, 0, $file, $line));
180+
$this->exceptionHandler(new ErrorException($message, 0, $type, $file, $line));
181181
}
182182
}
183183

0 commit comments

Comments
 (0)