Handle error suppression in ConsoleErrorHandler

This commit is contained in:
Albert Peschar 2022-03-02 15:57:10 +02:00
parent c276f027eb
commit 60e28a1e3e

View file

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