fix: better fatal exceptions reporting

This commit is contained in:
nuno maduro
2026-06-01 05:41:58 +01:00
parent 1c21a7647a
commit 6aa7d2f891
3 changed files with 6 additions and 4 deletions

View File

@ -163,7 +163,7 @@ final class Kernel
$this->terminate();
if (is_array($error = error_get_last())) {
if (! in_array($error['type'], [E_ERROR, E_CORE_ERROR], true)) {
if (! in_array($error['type'], [E_ERROR, E_COMPILE_ERROR, E_CORE_ERROR], true)) {
return;
}