From 32d29287d658b16cd34095a5de0f20d77ad685f1 Mon Sep 17 00:00:00 2001 From: David Date: Tue, 5 Dec 2023 17:46:29 +0100 Subject: [PATCH] x --- src/Framework/Environment.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Framework/Environment.php b/src/Framework/Environment.php index ada93e8d..80bfb53f 100644 --- a/src/Framework/Environment.php +++ b/src/Framework/Environment.php @@ -111,7 +111,7 @@ public static function setupErrors(): void set_exception_handler([self::class, 'handleException']); - set_error_handler([self::class, 'foo']); + set_error_handler([Environment::class, 'foo']); /* register_shutdown_function(static function (): void { @@ -135,14 +135,14 @@ public static function setupErrors(): void public static function foo(int $severity, string $message, string $file, int $line): ?bool { - if ( +/* if ( in_array($severity, [E_RECOVERABLE_ERROR, E_USER_ERROR], true) || ($severity & error_reporting()) === $severity ) { // self::handleException(new \ErrorException($message, 0, $severity, $file, $line)); } - return false; + return false;*/ }