Skip to content

Commit e2606a8

Browse files
authored
Merge pull request #6472 from paulbalandan/shutdown-handler
Fix fatal error gets turned to `0` severity on shutdown handler
2 parents 62c5d80 + f94fb2b commit e2606a8

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)