Conditions | 4 |
Paths | 4 |
Total Lines | 19 |
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 | /** @var list<ReflectionAttribute> $assisted */ |
||
41 | $assisted = $param->getAttributes(Assisted::class); |
||
42 | if (isset($assisted[0])) { |
||
43 | return true; |
||
44 | } |
||
45 | } |
||
46 | |||
47 | return false; |
||
48 | } |
||
49 | } |
||
50 |
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.