Conditions | 4 |
Paths | 3 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 8.7414 |
Changes | 0 |
1 | <?php |
||
22 | 9 | public function boot() |
|
23 | { |
||
24 | 9 | parent::boot(); |
|
25 | # HHVM compatibility hack |
||
26 | 9 | if (defined('HHVM_VERSION')) { |
|
27 | |||
28 | if (!\function_exists('error_clear_last')) { |
||
29 | function error_clear_last() |
||
30 | { |
||
31 | \set_error_handler(function () {}); |
||
32 | try { |
||
33 | \trigger_error(''); |
||
34 | } catch (\Exception $e) { |
||
35 | \restore_error_handler(); |
||
36 | throw $e; |
||
37 | } |
||
38 | \restore_error_handler(); |
||
39 | } |
||
49 |