Skip to content

Commit 95571ed

Browse files
authored
Drop phpstan workarounds for old versions (#42)
1 parent 466a929 commit 95571ed

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/iterable-functions.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ function iterable_map(iterable $iterable, callable $mapper): iterable
3737
* @return array<array-key, TValue>
3838
*
3939
* @psalm-return ($preserveKeys is true ? array<TKey, TValue> : array<int, TValue>)
40-
* @psalm-template TKey as array-key
41-
* @phpstan-template TKey
40+
* @template TKey of array-key
4241
* @template TValue
4342
*/
4443
function iterable_to_array(iterable $iterable, bool $preserveKeys = true): array
@@ -75,9 +74,7 @@ function iterable_to_traversable(iterable $iterable): Traversable
7574
* @param (callable(TValue):bool)|null $filter
7675
*
7776
* @psalm-param iterable<TKey, TValue> $iterable
78-
* @phpstan-param iterable<array-key, TValue> $iterable https://github.com/phpstan/phpstan/issues/4498
7977
* @psalm-return iterable<TKey, TValue>
80-
* @phpstan-return iterable<array-key, TValue> https://github.com/phpstan/phpstan/issues/4498
8178
* @template TKey
8279
* @template TValue
8380
*/

0 commit comments

Comments
 (0)