From 60e28a1e3e8cf7aa4a49dc440393b501e1b22424 Mon Sep 17 00:00:00 2001 From: Albert Peschar Date: Wed, 2 Mar 2022 15:57:10 +0200 Subject: [PATCH] Handle error suppression in ConsoleErrorHandler --- lib/Cake/Console/ConsoleErrorHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Console/ConsoleErrorHandler.php b/lib/Cake/Console/ConsoleErrorHandler.php index 3df0bf734..3956e5ab8 100644 --- a/lib/Cake/Console/ConsoleErrorHandler.php +++ b/lib/Cake/Console/ConsoleErrorHandler.php @@ -75,7 +75,7 @@ class ConsoleErrorHandler { * @return void */ public function handleError($code, $description, $file = null, $line = null, $context = null) { - if (error_reporting() === 0) { + if (!(error_reporting() & $code)) { return; } $stderr = static::getStderr();