Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
18 | 7 | public static function fromParameter(\ReflectionParameter $parameter) : self |
|
19 | { |
||
20 | 7 | return new self(\sprintf( |
|
21 | 7 | 'Unable to resolve argument $%s (#%d) of %s.', |
|
22 | 7 | $parameter->name, |
|
23 | 7 | $parameter->getPosition(), |
|
24 | 7 | self::getFunctionName($parameter->getDeclaringFunction()) |
|
25 | )); |
||
26 | } |
||
27 | |||
39 |