Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Oct 14, 2023
1 parent 995912d commit abe1e1b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Collection/AuditedCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,6 @@ public function exists(\Closure $p)
*
* @phpstan-param \Closure(T, int|string):bool $p
* @psalm-param \Closure(T=):bool $p
* @phpstan-return ReadableCollection<TKey, T>
* @psalm-return Collection<TKey, T>
*/
#[\ReturnTypeWillChange]
Expand Down Expand Up @@ -324,8 +323,9 @@ public function forAll(\Closure $p)
*
* @phpstan-template U
* @phpstan-param \Closure(T):U $func
* @phpstan-return ReadableCollection<TKey, U>
* @psalm-return Collection<TKey, U>
*
* @psalm-suppress ImplementedParamTypeMismatch,InvalidArgument
*/
#[\ReturnTypeWillChange]
public function map(\Closure $func)
Expand All @@ -339,7 +339,6 @@ public function map(\Closure $func)
* @return array<Collection<TKey, T>>
*
* @phpstan-param \Closure(TKey, T):bool $p
* @phpstan-return array{0: ReadableCollection<TKey, T>, 1: ReadableCollection<TKey, T>}
* @psalm-return array{0: Collection<TKey, T>, 1: Collection<TKey, T>}
*/
#[\ReturnTypeWillChange]
Expand Down

0 comments on commit abe1e1b

Please sign in to comment.