Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
31 | public static function invalidParameterTypeHint( |
||
32 | string $className, |
||
33 | string $methodName, |
||
34 | string $parameterName, |
||
35 | ?Throwable $previous = null |
||
36 | ) : self { |
||
37 | return new self( |
||
38 | sprintf( |
||
39 | 'The type hint of parameter "%s" in method "%s" in class "%s" is invalid.', |
||
40 | $parameterName, |
||
41 | $methodName, |
||
42 | $className |
||
43 | ), |
||
44 | 0, |
||
45 | $previous |
||
46 | ); |
||
47 | } |
||
48 | |||
78 |