Total Complexity | 8 |
Total Lines | 87 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | class ClassDispatch extends Dispatch implements Contract |
||
25 | { |
||
26 | /** |
||
27 | * @param class-string $class The class name |
||
28 | * @param array<array-key, mixed>|null $arguments The arguments |
||
29 | * @param class-string[]|null $dependencies The dependencies |
||
30 | */ |
||
31 | public function __construct( |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @inheritDoc |
||
40 | */ |
||
41 | #[Override] |
||
42 | public function getClass(): string |
||
43 | { |
||
44 | return $this->class; |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * @inheritDoc |
||
49 | */ |
||
50 | #[Override] |
||
51 | public function withClass(string $class): static |
||
52 | { |
||
53 | $new = clone $this; |
||
54 | |||
55 | $new->class = $class; |
||
56 | |||
57 | return $new; |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * @inheritDoc |
||
62 | */ |
||
63 | #[Override] |
||
64 | public function getArguments(): array|null |
||
65 | { |
||
66 | return $this->arguments; |
||
67 | } |
||
68 | |||
69 | /** |
||
70 | * @inheritDoc |
||
71 | */ |
||
72 | #[Override] |
||
73 | public function withArguments(array|null $arguments = null): static |
||
74 | { |
||
75 | $new = clone $this; |
||
76 | |||
77 | $new->arguments = $arguments; |
||
78 | |||
79 | return $new; |
||
80 | } |
||
81 | |||
82 | /** |
||
83 | * @inheritDoc |
||
84 | */ |
||
85 | #[Override] |
||
89 | } |
||
90 | |||
91 | /** |
||
92 | * @inheritDoc |
||
93 | */ |
||
94 | #[Override] |
||
102 | } |
||
103 | |||
104 | /** |
||
105 | * @inheritDoc |
||
106 | */ |
||
107 | #[Override] |
||
113 |
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