Skip to content

Commit

Permalink
chore: bump Psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jan 23, 2023
1 parent 50d416a commit 5dd2a88
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 18 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
14 changes: 0 additions & 14 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,6 @@
<code>$default</code>
</PossiblyNullArgument>
</file>
<file src="src/CollectionDecorator.php">
<InvalidArgument>
<code>foldLeft1</code>
<code>foldRight1</code>
</InvalidArgument>
<InvalidReturnType>
<code>static</code>
</InvalidReturnType>
</file>
<file src="src/Operation/All.php">
<InvalidReturnStatement>
<code>static fn (bool $normalize): Closure =&gt;
Expand All @@ -41,11 +32,6 @@
<code>Closure(bool): Closure(iterable&lt;TKey, T&gt;): (Generator&lt;int, T&gt;|Generator&lt;TKey, T&gt;)</code>
</InvalidReturnType>
</file>
<file src="src/Operation/Pluck.php">
<ArgumentTypeCoercion>
<code>$segment</code>
</ArgumentTypeCoercion>
</file>
<file src="src/Operation/Product.php">
<InvalidArgument>
<code>[[]]</code>
Expand Down
1 change: 1 addition & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
>
<projectFiles>
<directory name="./src" />
Expand Down
4 changes: 1 addition & 3 deletions src/Operation/Unzip.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit 5dd2a88

Please sign in to comment.