1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace loophp\collection\Contract\Operation; |
||
6 | |||
7 | use loophp\collection\Contract\Collection; |
||
8 | |||
9 | /** |
||
10 | * @template TKey |
||
11 | * @template T |
||
12 | */ |
||
13 | interface Reductionable |
||
14 | { |
||
15 | /** |
||
16 | * Reduce a collection of items through a given callback and yield each intermediary results. |
||
17 | * |
||
18 | * @see https://loophp-collection.readthedocs.io/en/stable/pages/api.html#reduction |
||
19 | * |
||
20 | * @template V |
||
21 | * |
||
22 | * @param callable(V, T, TKey, iterable<TKey, T>): V $callback |
||
23 | * @param V $initial |
||
0 ignored issues
–
show
|
|||
24 | * |
||
25 | * @return Collection<TKey|int, V> |
||
26 | */ |
||
27 | public function reduction(callable $callback, mixed $initial = null): Collection; |
||
28 | } |
||
29 |
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