From 5dd2a882c1b7fae0a5b8b858ec57ceb4bf173c61 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Mon, 23 Jan 2023 08:36:51 +0100 Subject: [PATCH] chore: bump Psalm --- composer.json | 2 +- psalm-baseline.xml | 14 -------------- psalm.xml | 1 + src/Operation/Unzip.php | 4 +--- 4 files changed, 3 insertions(+), 18 deletions(-) diff --git a/composer.json b/composer.json index a83824832..54120f7b5 100644 --- a/composer.json +++ b/composer.json @@ -50,7 +50,7 @@ "phpunit/phpunit": "^9.5", "psr/cache": "^2.0 || 3.0", "symfony/cache": "^6", - "vimeo/psalm": "dev-master#3e66c6bb7c3bc27504b4b3d738c7f10f48cbe492" + "vimeo/psalm": "^5.5" }, "autoload": { "psr-4": { diff --git a/psalm-baseline.xml b/psalm-baseline.xml index c29e5fd15..567455596 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -18,15 +18,6 @@ $default - - - foldLeft1 - foldRight1 - - - static - - static fn (bool $normalize): Closure => @@ -41,11 +32,6 @@ Closure(bool): Closure(iterable<TKey, T>): (Generator<int, T>|Generator<TKey, T>) - - - $segment - - [[]] diff --git a/psalm.xml b/psalm.xml index 9afb7cebe..4ebcc9062 100644 --- a/psalm.xml +++ b/psalm.xml @@ -4,6 +4,7 @@ xmlns="https://getpsalm.org/schema/config" xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" errorBaseline="psalm-baseline.xml" + findUnusedBaselineEntry="true" > diff --git a/src/Operation/Unzip.php b/src/Operation/Unzip.php index 5e6cbcba3..25f9f2e06 100644 --- a/src/Operation/Unzip.php +++ b/src/Operation/Unzip.php @@ -30,9 +30,7 @@ public function __invoke(): Closure static function (array $carry, iterable $value): array { $index = 0; - foreach ($value as $v) { - $carry[$index++][] = $v; - } + foreach ($value as $carry[$index++][]); return $carry; };