diff options
author | Lukas Winkler <git@lw1.at> | 2020-08-17 23:53:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-17 23:53:10 +0300 |
commit | b5dd5fbdeaf855b55c2817352d5654d8aca0c64b (patch) | |
tree | f181061aee73aeec53942f8d1cb7997bdb7f70a2 /core | |
parent | 33980246c9e37d0c8cbac20bb360a049bbd3bc87 (diff) |
don't log silenced errors in php8 (#16313)
Diffstat (limited to 'core')
-rw-r--r-- | core/ErrorHandler.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ErrorHandler.php b/core/ErrorHandler.php index 04ccd71016..fd15bf60d9 100644 --- a/core/ErrorHandler.php +++ b/core/ErrorHandler.php @@ -133,7 +133,7 @@ class ErrorHandler public static function errorHandler($errno, $errstr, $errfile, $errline) { // if the error has been suppressed by the @ we don't handle the error - if (error_reporting() == 0) { + if (!(error_reporting() & $errno)) { return; } |