diff --git a/src/Kernel.php b/src/Kernel.php index f61c2309..9bf79e05 100644 --- a/src/Kernel.php +++ b/src/Kernel.php @@ -139,6 +139,10 @@ final class Kernel $this->terminate(); if (is_array($error = error_get_last())) { + if (! in_array($error['type'], [E_ERROR, E_CORE_ERROR])) { + return; + } + $message = $error['message']; $file = $error['file']; $line = $error['line'];