Total Complexity | 7 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | final class Streams |
||
12 | { |
||
13 | /** |
||
14 | * Wrap a value into a stream |
||
15 | * The best stream implementation is used according to the value type : |
||
16 | * |
||
17 | * - If the value is a Streamable object, return the related stream |
||
18 | * - If the value is null or an empty array, return an EmptyStream |
||
19 | * - If the value is an array, return an ArrayStream |
||
20 | * - If the value is Traversable, return an IteratorStream |
||
21 | * - In other cases, return a SingletonStream |
||
22 | * |
||
23 | * @template V |
||
24 | * |
||
25 | * @param V|V[]|Traversable<mixed, V> $value The value to wrap |
||
|
|||
26 | * |
||
27 | * @return StreamInterface<V, mixed> |
||
28 | */ |
||
29 | 37 | public static function wrap($value): StreamInterface |
|
54 |
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