Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
32 | public function handle($code, $error, $file = null, $line = null) |
||
33 | { |
||
34 | if (error_reporting() === 0) { |
||
35 | return false; |
||
36 | } |
||
37 | |||
38 | $this->honeybadger->notify( |
||
39 | new ErrorException($error, 0, $code, $file, $line) |
||
40 | ); |
||
41 | |||
42 | if (is_callable($this->previousHandler)) { |
||
43 | call_user_func($this->previousHandler, $code, $error, $file, $line); |
||
44 | } |
||
47 |