ApplicationBootstrap#setupErrorHandling(): migrate error handler to PHP 8

... as recommended here:
https://www.php.net/manual/de/migration80.incompatible.php

refs #4287
This commit is contained in:
Alexander A. Klimov 2020-12-04 12:15:13 +01:00 committed by Johannes Meyer
parent 6d5024c671
commit eff10ec613
1 changed files with 1 additions and 1 deletions

View File

@ -605,7 +605,7 @@ abstract class ApplicationBootstrap
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
}