Total Complexity | 3 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class AttributeDriver extends AnnotationOrAttributeDriver |
||
8 | { |
||
9 | /** |
||
10 | * @return list<object> |
||
|
|||
11 | */ |
||
12 | protected function getClassAnnotations(\ReflectionClass $class): array |
||
13 | { |
||
14 | return array_map( |
||
15 | static function (\ReflectionAttribute $attribute): object { |
||
16 | return $attribute->newInstance(); |
||
17 | }, |
||
18 | $class->getAttributes() |
||
19 | ); |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * @return list<object> |
||
24 | */ |
||
25 | protected function getMethodAnnotations(\ReflectionMethod $method): array |
||
26 | { |
||
27 | return array_map( |
||
28 | static function (\ReflectionAttribute $attribute): object { |
||
29 | return $attribute->newInstance(); |
||
30 | }, |
||
31 | $method->getAttributes() |
||
32 | ); |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @return list<object> |
||
37 | */ |
||
38 | protected function getPropertyAnnotations(\ReflectionProperty $property): array |
||
45 | ); |
||
46 | } |
||
47 | } |
||
48 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths