From 8d865e386b8599258e85fdada3f7781368df323d Mon Sep 17 00:00:00 2001 From: Simon Podlipsky Date: Tue, 26 Apr 2022 13:16:08 +0200 Subject: [PATCH] Drop phpstan workarounds for old versions --- src/iterable-functions.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 */