Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorLukas Winkler <git@lw1.at>2020-08-17 23:53:10 +0300
committerGitHub <noreply@github.com>2020-08-17 23:53:10 +0300
commitb5dd5fbdeaf855b55c2817352d5654d8aca0c64b (patch)
treef181061aee73aeec53942f8d1cb7997bdb7f70a2 /core
parent33980246c9e37d0c8cbac20bb360a049bbd3bc87 (diff)
don't log silenced errors in php8 (#16313)
Diffstat (limited to 'core')
-rw-r--r--core/ErrorHandler.php2
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;
}