Total Complexity | 4 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | class GlobalVariableDispatch extends Dispatch implements Contract |
||
25 | { |
||
26 | /** |
||
27 | * @param non-empty-string $variable The variable name |
||
28 | */ |
||
29 | public function __construct( |
||
30 | protected string $variable |
||
31 | ) { |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @inheritDoc |
||
36 | */ |
||
37 | #[Override] |
||
38 | public function getVariable(): string |
||
39 | { |
||
40 | return $this->variable; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @inheritDoc |
||
45 | */ |
||
46 | #[Override] |
||
47 | public function withVariable(string $variable): static |
||
48 | { |
||
49 | $new = clone $this; |
||
50 | |||
51 | $new->variable = $variable; |
||
52 | |||
53 | return $new; |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * @inheritDoc |
||
58 | */ |
||
59 | #[Override] |
||
63 | } |
||
64 | } |
||
65 |
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