Conditions | 6 |
Paths | 6 |
Total Lines | 23 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function build(): Type |
||
30 | { |
||
31 | $class = \get_class($this->reflection); |
||
32 | |||
33 | switch ($class) { |
||
34 | case StringType::class: |
||
35 | return Type::string(); |
||
36 | |||
37 | case IDType::class: |
||
38 | return Type::id(); |
||
39 | |||
40 | case BooleanType::class: |
||
41 | return Type::boolean(); |
||
42 | |||
43 | case IntType::class: |
||
44 | return Type::int(); |
||
45 | |||
46 | case FloatType::class: |
||
47 | return Type::float(); |
||
48 | } |
||
49 | |||
50 | $error = 'Can not build scalar type %s.'; |
||
51 | throw new \InvalidArgumentException(\sprintf($error, $this->reflection)); |
||
52 | } |
||
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