Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Even smarter error checking

  • Loading branch information...
commit 1c46e90611412003ee16beade7502983761575b3 1 parent 2173923
@snikch snikch authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 Services/Airbrake.php
View
4 Services/Airbrake.php
@@ -128,9 +128,7 @@ public function setup()
*/
public function errorHandler($code, $message, $file, $line)
{
- $reporting_level = error_reporting();
- if ($code == E_STRICT && ($reporting_level & E_STRICT) == E_STRICT) return;
- if ($code == E_NOTICE && ($reporting_level & E_NOTICE) == E_NOTICE) return;
+ if (!(error_reporting() & $code)) return;
$this->notify($code, $message, $file, $line, debug_backtrace());
Please sign in to comment.
Something went wrong with that request. Please try again.