diff --git a/src/Collection/AuditedCollection.php b/src/Collection/AuditedCollection.php index 539514c2..c0da6ea6 100644 --- a/src/Collection/AuditedCollection.php +++ b/src/Collection/AuditedCollection.php @@ -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 * @psalm-return Collection */ #[\ReturnTypeWillChange] @@ -324,8 +323,9 @@ public function forAll(\Closure $p) * * @phpstan-template U * @phpstan-param \Closure(T):U $func - * @phpstan-return ReadableCollection * @psalm-return Collection + * + * @psalm-suppress ImplementedParamTypeMismatch,InvalidArgument */ #[\ReturnTypeWillChange] public function map(\Closure $func) @@ -339,7 +339,6 @@ public function map(\Closure $func) * @return array> * * @phpstan-param \Closure(TKey, T):bool $p - * @phpstan-return array{0: ReadableCollection, 1: ReadableCollection} * @psalm-return array{0: Collection, 1: Collection} */ #[\ReturnTypeWillChange]