diff --git a/src/Registry.php b/src/Registry.php index 83a8945..35f4c14 100644 --- a/src/Registry.php +++ b/src/Registry.php @@ -296,7 +296,7 @@ public static function errorHandler(int $severity, string $message, string $file public static function fatalErrorHandler(): void { // !Warning! You should not call error_get_last in root namespace! - $error = \error_get_last(); + $error = error_get_last(); if (!\is_array($error) || !\in_array($error['type'], self::$FATAL)) { return;