Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
37 | public static function invalidInjection($propertyOrParameter): self |
||
38 | { |
||
39 | $type = $propertyOrParameter instanceof ReflectionProperty ? "property" : "constructor parameter"; |
||
40 | return new self( |
||
41 | sprintf( |
||
42 | "Impossible to determine the injection for %s ($%s) in (%s).", |
||
43 | $type, |
||
44 | $propertyOrParameter->getName(), |
||
45 | $propertyOrParameter->getDeclaringClass()->getName() |
||
46 | ) |
||
50 |