diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-07-13 08:52:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-13 08:52:18 +0200 |
commit | e1f644a2aee0b9c55ee229e5a89fb8bc190d9bbb (patch) | |
tree | f962de85d85abce1b735a0ebd10f34374babe19c /lib | |
parent | 3860dad9eaac937288d125c75e7f58cfbe44848a (diff) | |
parent | 16c4991db6e2902c164bdcaee79d530eccafed70 (diff) | |
download | nextcloud-server-e1f644a2aee0b9c55ee229e5a89fb8bc190d9bbb.tar.gz nextcloud-server-e1f644a2aee0b9c55ee229e5a89fb8bc190d9bbb.zip |
Merge pull request #27631 from yan12125/php8-fix-error-reporting
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Log/ErrorHandler.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Log/ErrorHandler.php b/lib/private/Log/ErrorHandler.php index 6c969fa093c..d56fecb1ecb 100644 --- a/lib/private/Log/ErrorHandler.php +++ b/lib/private/Log/ErrorHandler.php @@ -85,7 +85,7 @@ class ErrorHandler { //Recoverable errors handler public static function onError($number, $message, $file, $line) { - if (error_reporting() === 0) { + if (!(error_reporting() & $number)) { return; } $msg = $message . ' at ' . $file . '#' . $line; |