Total Complexity | 7 |
Total Lines | 64 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | class ConstantDispatch extends Dispatch implements Contract |
||
25 | { |
||
26 | /** |
||
27 | * @param non-empty-string $constant The constant name |
||
28 | * @param class-string|null $class The class name |
||
29 | */ |
||
30 | public function __construct( |
||
31 | protected string $constant, |
||
32 | protected string|null $class = null, |
||
33 | ) { |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @inheritDoc |
||
38 | */ |
||
39 | #[Override] |
||
40 | public function getConstant(): string |
||
41 | { |
||
42 | return $this->constant; |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @inheritDoc |
||
47 | */ |
||
48 | #[Override] |
||
49 | public function withConstant(string $constant): static |
||
50 | { |
||
51 | $new = clone $this; |
||
52 | |||
53 | $new->constant = $constant; |
||
54 | |||
55 | return $new; |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * @inheritDoc |
||
60 | */ |
||
61 | #[Override] |
||
62 | public function getClass(): string|null |
||
63 | { |
||
64 | return $this->class; |
||
65 | } |
||
66 | |||
67 | /** |
||
68 | * @inheritDoc |
||
69 | */ |
||
70 | #[Override] |
||
78 | } |
||
79 | |||
80 | /** |
||
81 | * @inheritDoc |
||
82 | */ |
||
83 | #[Override] |
||
88 | } |
||
89 | } |
||
90 |
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