| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | private function getQualifierKeyVarString(\ReflectionMethod $method) : string |
||
| 39 | { |
||
| 40 | /** @var array<object> $annotations */ |
||
| 41 | $annotations = $this->reader->getMethodAnnotations($method); |
||
| 42 | $names = []; |
||
| 43 | foreach ($annotations as $annotation) { |
||
| 44 | $qualifier = $this->reader->getClassAnnotation(new \ReflectionClass($annotation), Qualifier::class); |
||
| 45 | if ($qualifier instanceof Qualifier) { |
||
| 46 | /** @var ?scalar $annotation->value */ |
||
|
|
|||
| 47 | $value = $annotation->value ?? Name::ANY; // @phpstan-ignore-line |
||
| 48 | $names[] = sprintf('%s=%s', (string) $value, \get_class($annotation)); // @phpstan-ignore-line |
||
| 49 | } |
||
| 50 | } |
||
| 51 | |||
| 52 | return implode(',', $names); |
||
| 53 | } |
||
| 54 | } |
||
| 55 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.