mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-26 00:37:18 +00:00
Handle error suppression in ConsoleErrorHandler
This commit is contained in:
parent
c276f027eb
commit
60e28a1e3e
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue