Skip to content

Commit

Permalink
ApplicationBootstrap#setupErrorHandling(): migrate error handler to P…
Browse files Browse the repository at this point in the history
  • Loading branch information
Al2Klimov committed Dec 4, 2020
1 parent eaf0504 commit d1ba493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Icinga/Application/ApplicationBootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ protected function setupErrorHandling()
ini_set('display_startup_errors', 1);
ini_set('display_errors', 1);
set_error_handler(function ($errno, $errstr, $errfile, $errline) {
if (error_reporting() === 0) {
if (!(error_reporting() & $errno)) {
// Error was suppressed with the @-operator
return false; // Continue with the normal error handler
}
Expand Down

0 comments on commit d1ba493

Please sign in to comment.