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();