| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function __invoke(string $appName, string $context, array $globals, array $server): int |
||
| 28 | { |
||
| 29 | $tmpDir = dirname(__DIR__, 2) . '/tests/tmp'; |
||
| 30 | $app = Injector::getInstance($appName, $context, $tmpDir)->getInstance(AppInterface::class); |
||
| 31 | $app->httpCache->isNotModified($server); |
||
| 32 | |||
| 33 | $request = $app->router->match($globals, $server); |
||
| 34 | try { |
||
| 35 | /** @psalm-suppress all */ |
||
| 36 | $app->resource->{$request->method}->uri($request->path)($request->query); |
||
| 37 | } catch (Throwable $e) { |
||
| 38 | $app->throwableHandler->handle($e, $request)->transfer(); |
||
| 39 | |||
| 40 | return 1; |
||
| 41 | } |
||
| 42 | |||
| 43 | // @codeCoverageIgnoreStart |
||
| 44 | return 0; |
||
| 45 | } |
||
| 46 | } |
||
| 47 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.