1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace loophp\collection\Operation; |
||
6 | |||
7 | use Closure; |
||
8 | use Generator; |
||
9 | |||
10 | /** |
||
11 | * @immutable |
||
12 | * |
||
13 | * @template TKey |
||
14 | * @template T |
||
15 | */ |
||
16 | final class Current extends AbstractOperation |
||
17 | { |
||
18 | /** |
||
19 | * @template V |
||
20 | * |
||
21 | * @return Closure(int): Closure(V): Closure(iterable<TKey, T>): Generator<int, T|V> |
||
22 | */ |
||
23 | 112 | public function __invoke(): Closure |
|
24 | { |
||
25 | 112 | return |
|
26 | /** |
||
27 | * @return Closure(V): Closure(iterable<TKey, T>): Generator<int, T|V> |
||
28 | */ |
||
29 | 112 | static fn (int $index): Closure => |
|
30 | /** |
||
31 | * @param V $default |
||
0 ignored issues
–
show
|
|||
32 | * |
||
33 | * @return Closure(iterable<TKey, T>): Generator<int, T|V> |
||
34 | */ |
||
35 | 112 | static function (mixed $default) use ($index): Closure { |
|
36 | /** @var Closure(iterable<TKey, T>): Generator<int, T|V> $pipe */ |
||
37 | 112 | $pipe = (new Pipe())()( |
|
38 | 112 | (new Normalize())(), |
|
39 | 112 | (new Get())()($index)($default) |
|
40 | 112 | ); |
|
41 | |||
42 | // Point free style. |
||
43 | 112 | return $pipe; |
|
44 | 112 | }; |
|
45 | } |
||
46 | } |
||
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