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 Flip extends AbstractOperation |
||
17 | { |
||
18 | /** |
||
19 | * @return Closure(iterable<TKey, T>): Generator<T, TKey> |
||
20 | */ |
||
21 | 16 | public function __invoke(): Closure |
|
22 | { |
||
23 | 16 | return (new Associate())()( |
|
24 | /** |
||
25 | * @param TKey $key |
||
0 ignored issues
–
show
|
|||
26 | * @param T $value |
||
27 | * |
||
28 | * @return T |
||
29 | */ |
||
30 | 16 | static fn (mixed $key, mixed $value): mixed => $value |
|
31 | 16 | )( |
|
32 | /** |
||
33 | * @param T $value |
||
34 | * @param TKey $key |
||
35 | * |
||
36 | * @return TKey |
||
37 | */ |
||
38 | 16 | static fn (mixed $value, mixed $key): mixed => $key |
|
39 | 16 | ); |
|
40 | } |
||
41 | } |
||
42 |
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