Skip to content

Commit

Permalink
Extend ErrorHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
dragomano committed Dec 4, 2024
1 parent 46fed46 commit 8768e0a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Compat/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

namespace Bugo\Compat;

use function display_db_error;
use function fatal_error;
use function fatal_lang_error;
use function log_error;
Expand Down Expand Up @@ -44,4 +45,9 @@ public static function log(
{
return log_error($error_message, $error_type, $file, $line);
}

public static function displayDbError(): void
{
display_db_error();
}
}

0 comments on commit 8768e0a

Please sign in to comment.