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:
parent
6d5024c671
commit
eff10ec613
|
@ -605,7 +605,7 @@ abstract class ApplicationBootstrap
|
||||||
ini_set('display_startup_errors', 1);
|
ini_set('display_startup_errors', 1);
|
||||||
ini_set('display_errors', 1);
|
ini_set('display_errors', 1);
|
||||||
set_error_handler(function ($errno, $errstr, $errfile, $errline) {
|
set_error_handler(function ($errno, $errstr, $errfile, $errline) {
|
||||||
if (error_reporting() === 0) {
|
if (! (error_reporting() & $errno)) {
|
||||||
// Error was suppressed with the @-operator
|
// Error was suppressed with the @-operator
|
||||||
return false; // Continue with the normal error handler
|
return false; // Continue with the normal error handler
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue