diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 070d3d970..58a7adc1c 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -325,11 +325,6 @@ parameters: count: 1 path: src/Operation/Nth.php - - - message: "#^Parameter \\#1 \\$ of closure expects callable\\(mixed\\=, mixed\\=, iterable\\=\\)\\: mixed, Closure\\(array\\)\\: array\\ given\\.$#" - count: 1 - path: src/Operation/Pair.php - - message: "#^Parameter \\#1 \\$ of closure expects callable\\(mixed\\=, mixed\\=, iterable\\=\\)\\: mixed, Closure\\(mixed, array\\)\\: mixed given\\.$#" count: 1 diff --git a/src/Operation/Pair.php b/src/Operation/Pair.php index 2e4ea21d7..1fd518854 100644 --- a/src/Operation/Pair.php +++ b/src/Operation/Pair.php @@ -22,8 +22,8 @@ public function __invoke(): Closure { /** @var Closure(iterable): Generator $pipe */ $pipe = (new Pipe())()( + (new Normalize)(), (new Chunk())()(2), - (new Map())()(static fn (array $value): array => array_values($value)), (new Associate())()( /** * @param TKey $key