Skip to content

Commit

Permalink
+ new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EdmondDantes committed Nov 14, 2024
1 parent 30f98e4 commit 0227972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ public static function errorHandler(int $severity, string $message, string $file
public static function fatalErrorHandler(): void
{
// !Warning! You should not call error_get_last in root namespace!
$error = \error_get_last();
$error = error_get_last();

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

0 comments on commit 0227972

Please sign in to comment.