| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 11 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 32 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface | ||
| 33 |     { | ||
| 34 | $response = ($this->target)($request, $this->environment); | ||
| 35 | |||
| 36 |         if (!$response instanceof ResponseInterface) { | ||
| 37 | throw new DispatchException( | ||
| 38 | 'Dispatcher callable must return a ResponseInterface object. Found: ' . gettype($response) | ||
| 39 | ); | ||
| 40 | } | ||
| 41 | |||
| 42 | return $response; | ||
| 43 | } | ||
| 45 |