Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
20 | public function resolveFromDocBlock( |
||
21 | ?string $docBlock, |
||
22 | TagName $tagName, |
||
23 | UseStatements $useStatements, |
||
24 | 29 | callable $filter = null |
|
25 | 14 | ): TypeDeclaration { |
|
26 | if ($docBlock === null) { |
||
27 | return TypeDeclaration::absent(); |
||
28 | 29 | } |
|
29 | |||
30 | 29 | $returnType = $this->typeFactory->typeFromTag($docBlock, $tagName, $filter); |
|
31 | |||
32 | return $returnType instanceof TagType ? $returnType->resolve($useStatements) : TypeDeclaration::absent(); |
||
33 | 32 | } |
|
35 |
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