Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public function matchesMethod(ReflectionMethod $method, array $arguments): bool |
||
31 | { |
||
32 | $params = $method->getParameters(); |
||
33 | foreach ($params as $param) { |
||
34 | /** @var list<ReflectionAttribute> $attributes */ |
||
|
|||
35 | $attributes = $param->getAttributes(InjectInterface::class, ReflectionAttribute::IS_INSTANCEOF); |
||
36 | if (isset($attributes[0])) { |
||
37 | return true; |
||
38 | } |
||
39 | } |
||
40 | |||
41 | return false; |
||
42 | } |
||
43 | } |
||
44 |
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.