Skip to content

Commit

Permalink
* fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EdmondDantes committed Oct 26, 2024
1 parent 12defcf commit 1b07986
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,8 @@ public static function errorHandler(int $code, string $message, string $file, in

public static function fatalErrorHandler(): void
{
$error = \error_get_last();
// !Warning! You should not call error_get_last in root namespace!
$error = error_get_last();

if (!\is_array($error) || !\in_array($error['type'], self::$FATAL)) {
return;
Expand Down

0 comments on commit 1b07986

Please sign in to comment.