aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-07-13 08:52:18 +0200
committerGitHub <noreply@github.com>2021-07-13 08:52:18 +0200
commite1f644a2aee0b9c55ee229e5a89fb8bc190d9bbb (patch)
treef962de85d85abce1b735a0ebd10f34374babe19c /lib
parent3860dad9eaac937288d125c75e7f58cfbe44848a (diff)
parent16c4991db6e2902c164bdcaee79d530eccafed70 (diff)
downloadnextcloud-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.php2
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;