Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
29 | public function build(array $parameters, MethodDocBlock $methodDocBlock): array |
||
30 | { |
||
31 | return array_map(function (Param $parameter) use ($methodDocBlock): Parameter { |
||
32 | /** @var \PhpParser\Node\Expr\Variable $parsedParameter Since the parser throws error by default */ |
||
33 | $parsedParameter = $parameter->var; |
||
34 | |||
35 | /** @var string $parameterName Since it's a parameter not a variable */ |
||
36 | $parameterName = $parsedParameter->name; |
||
37 | |||
38 | $name = "\${$parameterName}"; |
||
39 | $type = $parameter->type; |
||
40 | |||
41 | $typeDeclaration = $this->typeBuilder->fromMethodParameter($type, $methodDocBlock, $name); |
||
42 | |||
43 | return new Parameter(new Variable($name, $typeDeclaration), $parameter->variadic, $parameter->byRef); |
||
44 | }, $parameters); |
||
45 | } |
||
47 |
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