Skip to content

Commit

Permalink
Do not throw on E_DEPRECATED
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv committed Nov 27, 2024
1 parent b59e334 commit 2a28b95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/dep
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ set_error_handler(function ($severity, $message, $filename, $lineno) {
if (error_reporting() == 0) {
return;
}
if ($severity == E_DEPRECATED) {
return;
}
if (error_reporting() & $severity) {
throw new ErrorException($message, 0, $severity, $filename, $lineno);
}
Expand Down

0 comments on commit 2a28b95

Please # to comment.