Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixes kernel throwing all kind of errors
  • Loading branch information
nunomaduro committed Jan 29, 2024
1 parent 06280ef commit eeade88
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Kernel.php
Expand Up @@ -139,6 +139,10 @@ public function shutdown(): void
$this->terminate();

if (is_array($error = error_get_last())) {
if (! in_array($error['type'], [E_ERROR, E_CORE_ERROR])) {

Check failure on line 142 in src/Kernel.php

GitHub Actions / Static Tests (prefer-lowest)

Call to function in_array() requires parameter #3 to be set.

Check failure on line 142 in src/Kernel.php

GitHub Actions / Static Tests (prefer-stable)

Call to function in_array() requires parameter #3 to be set.

Check failure on line 142 in src/Kernel.php

GitHub Actions / Static Tests (prefer-lowest)

Call to function in_array() requires parameter #3 to be set.

Check failure on line 142 in src/Kernel.php

GitHub Actions / Static Tests (prefer-stable)

Call to function in_array() requires parameter #3 to be set.
return;
}

$message = $error['message'];
$file = $error['file'];
$line = $error['line'];
Expand Down

0 comments on commit eeade88

Please sign in to comment.