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 18bbfbb commit 37b17ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Framework/Environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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;*/
}


Expand Down

0 comments on commit 37b17ab

Please sign in to comment.