Total Complexity | 6 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | final class InjectionPoints |
||
15 | { |
||
16 | /** |
||
17 | * Injection points |
||
18 | * |
||
19 | * @var InjectionPointsList |
||
|
|||
20 | */ |
||
21 | private $points = []; |
||
22 | |||
23 | /** |
||
24 | * @param class-string $class |
||
25 | * |
||
26 | * @throws ReflectionException |
||
27 | */ |
||
28 | public function __invoke(string $class): SetterMethods |
||
29 | { |
||
30 | $points = []; |
||
31 | foreach ($this->points as $point) { |
||
32 | $points[] = $this->getSetterMethod($class, $point); |
||
33 | } |
||
34 | |||
35 | return new SetterMethods($points); |
||
36 | } |
||
37 | |||
38 | public function addMethod(string $method, string $name = Name::ANY): self |
||
43 | } |
||
44 | |||
45 | public function addOptionalMethod(string $method, string $name = Name::ANY): self |
||
46 | { |
||
47 | $this->points[] = [$method, $name, true]; |
||
48 | |||
49 | return $this; |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * @param class-string $class |
||
54 | * @param InjectionPointDefinition $point |
||
55 | * |
||
56 | * @throws ReflectionException |
||
57 | */ |
||
58 | private function getSetterMethod(string $class, array $point): SetterMethod |
||
66 | } |
||
67 | } |
||
68 |
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