From f94fb2bcdd119fdc7828f73ccca5f0c8b96f8d17 Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Fri, 2 Sep 2022 09:45:17 +0800 Subject: [PATCH] Fix fatal error gets turned to `0` severity on shutdown handler --- system/Debug/Exceptions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/Debug/Exceptions.php b/system/Debug/Exceptions.php index 9994aa7a045a..68dbf98d174a 100644 --- a/system/Debug/Exceptions.php +++ b/system/Debug/Exceptions.php @@ -177,7 +177,7 @@ public function shutdownHandler() ['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)); } }