Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | public function handle(Throwable $e, Request $request): ThrowableHandlerInterface |
||
27 | { |
||
28 | $e = $e instanceof Error ? new ErrorException($e->getMessage(), $e->getCode(), E_ERROR, $e->getFile(), $e->getLine()) : $e; |
||
29 | assert($e instanceof Exception); |
||
30 | $this->error->handle($e, $request); |
||
31 | |||
32 | return $this; |
||
33 | } |
||
40 |