| Conditions | 5 |
| Paths | 5 |
| Total Lines | 21 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public static function create(array $children): self |
||
| 33 | { |
||
| 34 | $union = new static($children[1]); |
||
| 35 | |||
| 36 | foreach ($children as $child) { |
||
| 37 | switch (true) { |
||
| 38 | case $child instanceof Description: |
||
| 39 | $union->description = $child->value; |
||
| 40 | break; |
||
| 41 | |||
| 42 | case $child instanceof DirectiveNode: |
||
| 43 | $union->directives[] = $child; |
||
| 44 | break; |
||
| 45 | |||
| 46 | case $child instanceof UnionMemberNode: |
||
|
|
|||
| 47 | $union->types[] = $child; |
||
| 48 | break; |
||
| 49 | } |
||
| 50 | } |
||
| 51 | |||
| 52 | return $union; |
||
| 53 | } |
||
| 55 |
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