| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | 1 | public function handleError(Throwable $e, ServerRequestInterface $req = null): ResponseInterface |
|
| 32 | {
|
||
| 33 | 1 | $res = $this->factory->createResponse(500); |
|
| 34 | |||
| 35 | 1 | $res->getBody()->write($this->renderer->render($this->template, ['error' => new ErrorInfo($e, $this->debug, $req)])); |
|
| 36 | |||
| 37 | 1 | return $res; |
|
| 38 | } |
||
| 39 | } |