diff --git a/src/iterable-functions.php b/src/iterable-functions.php index 981332e..3747aaf 100644 --- a/src/iterable-functions.php +++ b/src/iterable-functions.php @@ -37,8 +37,7 @@ function iterable_map(iterable $iterable, callable $mapper): iterable * @return array * * @psalm-return ($preserveKeys is true ? array : array) - * @psalm-template TKey as array-key - * @phpstan-template TKey + * @template TKey of array-key * @template TValue */ function iterable_to_array(iterable $iterable, bool $preserveKeys = true): array @@ -75,9 +74,7 @@ function iterable_to_traversable(iterable $iterable): Traversable * @param (callable(TValue):bool)|null $filter * * @psalm-param iterable $iterable - * @phpstan-param iterable $iterable https://github.com/phpstan/phpstan/issues/4498 * @psalm-return iterable - * @phpstan-return iterable https://github.com/phpstan/phpstan/issues/4498 * @template TKey * @template TValue */