Permalink
Browse files

Even smarter error checking

  • Loading branch information...
1 parent 2173923 commit 1c46e90611412003ee16beade7502983761575b3 @snikch snikch committed Oct 10, 2011
Showing with 1 addition and 3 deletions.
  1. +1 −3 Services/Airbrake.php
View
@@ -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());

0 comments on commit 1c46e90

Please sign in to comment.