| Conditions | 4 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 40 | private function fromParsedType($type): TypeDeclaration |
||
| 41 | { |
||
| 42 | if ($type instanceof NullableType) { |
||
| 43 | return TypeDeclaration::fromNullable((string) $type->type); |
||
| 44 | } |
||
| 45 | |||
| 46 | if ($type instanceof Name) { |
||
| 47 | return TypeDeclaration::from($type->getLast()); |
||
| 48 | } |
||
| 49 | |||
| 50 | if ($type instanceof Identifier) { |
||
| 51 | return TypeDeclaration::from((string) $type); |
||
| 52 | } |
||
| 53 | |||
| 54 | throw UnsupportedType::declaredAs($type); |
||
| 55 | } |
||
| 57 |
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