Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public static function mustBeStatic(ReflectionMethod $reflectionMethod, string $annotation): self |
||
22 | { |
||
23 | return new self(sprintf( |
||
24 | 'Method %s::%s annotated with annotation %s must be static.', |
||
25 | $reflectionMethod->getDeclaringClass()->getName(), |
||
26 | $reflectionMethod->getName(), |
||
27 | $annotation |
||
28 | )); |
||
31 |