Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | 8 | public static function create($handler): self |
|
24 | { |
||
25 | 8 | return new self(sprintf( |
|
26 | 8 | 'Handler "%s" must be an instance or name of a class that implements `%s` or `%s`' |
|
27 | 8 | . ' interface as well as a PHP callable or array of such arguments.', |
|
28 | 8 | self::convertToString($handler), |
|
29 | 8 | MiddlewareInterface::class, |
|
30 | 8 | RequestHandlerInterface::class |
|
31 | 8 | )); |
|
70 |