From 37b17ab2bd47170b35e375b6f3131c6fadfcdbac 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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Framework/Environment.php b/src/Framework/Environment.php index ada93e8d..4133f9e5 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 { @@ -133,16 +133,16 @@ public static function setupErrors(): void });*/ } - public static function foo(int $severity, string $message, string $file, int $line): ?bool + public static function foo(int $severity, string $message, string $file, int $line) { - 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;*/ }