```php
if (!($errno & error_reporting())) {
    return; 
}
```
would be better here. It would allow you to turn off reporting for specific types rather than an all-or-nothing approach.