Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Dec 5, 2023
1 parent 16afdf9 commit d31751d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Framework/Environment.php
Expand Up @@ -110,7 +110,7 @@ public static function setupErrors(): void
ini_set('log_errors', '0');

set_exception_handler([self::class, 'handleException']);

/*
set_error_handler(static function (int $severity, string $message, string $file, int $line): ?bool {
if (
in_array($severity, [E_RECOVERABLE_ERROR, E_USER_ERROR], true)
Expand All @@ -121,6 +121,7 @@ public static function setupErrors(): void
return false;
});
*/
/*
register_shutdown_function(static function (): void {
Assert::$onFailure = [self::class, 'handleException'];
Expand Down

0 comments on commit d31751d

Please sign in to comment.