| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | public static function create(\ReflectionMethod $reflectionMethod): self |
||
| 9 | { |
||
| 10 | return new self(sprintf( |
||
| 11 | 'Cannot give a name to service of method %s::%s because it has no declared return type.', |
||
| 12 | $reflectionMethod->getDeclaringClass()->getName(), |
||
| 13 | $reflectionMethod->getName() |
||
| 14 | )); |
||
| 17 |