| Conditions | 2 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | private function callable($function) : callable |
||
| 42 | { |
||
| 43 | return function() use ($function) { |
||
| 44 | try { |
||
| 45 | call_user_func($function); |
||
| 46 | } catch (Throwable $throwable) { |
||
| 47 | $errmsg = "Unhandled Exception in Timer callback\n" |
||
| 48 | .$throwable->getMessage()."\n" |
||
| 49 | .$throwable->getTraceAsString(); |
||
| 50 | $this->warning($errmsg); |
||
| 51 | } |
||
| 52 | }; |
||
| 53 | } |
||
| 54 | } |