Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
33 | public static function forInvalidMiddlewareResponse($response): self |
||
34 | { |
||
35 | $dumped = var_export($response, true); |
||
36 | return new self(sprintf( |
||
37 | "Middleware failed to produce valid response object, expected instance of `%s` got `%s`". |
||
38 | ResponseInterface::class, |
||
39 | $dumped |
||
40 | )); |
||
43 |