mirror of
https://github.com/pestphp/pest.git
synced 2026-03-12 02:37:22 +01:00
Fixes kernel throwing all kind of errors
This commit is contained in:
@ -139,6 +139,10 @@ final class Kernel
|
|||||||
$this->terminate();
|
$this->terminate();
|
||||||
|
|
||||||
if (is_array($error = error_get_last())) {
|
if (is_array($error = error_get_last())) {
|
||||||
|
if (! in_array($error['type'], [E_ERROR, E_CORE_ERROR])) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$message = $error['message'];
|
$message = $error['message'];
|
||||||
$file = $error['file'];
|
$file = $error['file'];
|
||||||
$line = $error['line'];
|
$line = $error['line'];
|
||||||
|
|||||||
Reference in New Issue
Block a user