| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | protected static function error(): bool |
||
| 15 | { |
||
| 16 | // [889ad594-ca28-4770-bb38-fd5bd8cb1777]: |
||
| 17 | // will be `null` if error handler set by `set_error_handler()` successfully handled the error |
||
| 18 | $error = error_get_last(); |
||
| 19 | |||
| 20 | return (bool)(($error['type'] ?? 0) |
||
| 21 | & |
||
| 22 | (E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR | E_USER_ERROR | E_RECOVERABLE_ERROR)); |
||
| 23 | } |
||
| 25 |