Total Complexity | 5 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
17 | final class ParsedConstantsBuilder implements ConstantsBuilder |
||
18 | { |
||
19 | /** @var string[] */ |
||
20 | private const TYPES = [ |
||
21 | 'integer' => 'int', |
||
22 | 'double' => 'float', |
||
23 | 'string' => 'string', |
||
24 | ]; |
||
25 | |||
26 | 45 | public function __construct(private readonly VisibilityBuilder $visibilityBuilder) |
|
27 | { |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @param ClassConst[] $classConstants |
||
32 | * @return Constant[] |
||
33 | */ |
||
34 | 30 | public function build(array $classConstants): array |
|
41 | } |
||
42 | |||
43 | 17 | private function determineType(Const_ $constant): ?string |
|
54 |
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