Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
50 | public static function forStringNotConvertedToInstance(string $handler): self |
||
51 | { |
||
52 | return new self(sprintf( |
||
53 | 'String handler "%s" must be a name of a class or an identifier of' |
||
54 | . ' a container definition that implements `%s` or `%s` interface.', |
||
55 | $handler, |
||
56 | MiddlewareInterface::class, |
||
57 | RequestHandlerInterface::class |
||
58 | )); |
||
70 |