| Conditions | 2 |
| Paths | 2 |
| Total Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function handle(): ?int |
||
| 23 | { |
||
| 24 | try { |
||
| 25 | $this->errorPageHandler->handle($this->exception); |
||
| 26 | } catch (Error $error) { |
||
| 27 | // Errors aren't caught by Whoops. |
||
| 28 | // Convert the error to an exception and throw again. |
||
| 29 | |||
| 30 | throw new ErrorException( |
||
| 31 | $error->getMessage(), |
||
| 32 | $error->getCode(), |
||
| 33 | 1, |
||
| 34 | $error->getFile(), |
||
| 35 | $error->getLine(), |
||
| 36 | $error |
||
| 37 | ); |
||
| 38 | } |
||
| 39 | |||
| 40 | return Handler::QUIT; |
||
| 41 | } |
||
| 42 | |||
| 49 |