| Total Complexity | 8 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 17 | final class TypeBuilder |
||
| 18 | { |
||
| 19 | /** @param Identifier|Name|NullableType|UnionType|null $type */ |
||
| 20 | public function fromMethodParameter($type, MethodDocBlock $docBlock, string $name): TypeDeclaration |
||
| 21 | { |
||
| 22 | if ($type === null) { |
||
| 23 | return $docBlock->typeOfParameter($name); |
||
| 24 | } |
||
| 25 | |||
| 26 | return $this->fromParsedType($type); |
||
| 27 | } |
||
| 28 | |||
| 29 | /** @param Identifier|Name|NullableType|UnionType|null $type */ |
||
| 30 | public function fromMethodReturnType($type, MethodDocBlock $docBlock): TypeDeclaration |
||
| 37 | } |
||
| 38 | |||
| 39 | /** @param Identifier|Name|NullableType|UnionType|null $type */ |
||
| 40 | private function fromParsedType($type): TypeDeclaration |
||
| 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