diff --git a/lib/Doctrine/Common/Collections/Collection.php b/lib/Doctrine/Common/Collections/Collection.php index a559b630..d3f2061a 100644 --- a/lib/Doctrine/Common/Collections/Collection.php +++ b/lib/Doctrine/Common/Collections/Collection.php @@ -191,7 +191,7 @@ public function next(); * Tests for the existence of an element that satisfies the given predicate. * * @param Closure $p The predicate. - * @psalm-param Closure(TKey=, T=):bool $p + * @psalm-param Closure(TKey, T):bool $p * * @return bool TRUE if the predicate is TRUE for at least one element, FALSE otherwise. */ @@ -202,7 +202,7 @@ public function exists(Closure $p); * The order of the elements is preserved. * * @param Closure $p The predicate used for filtering. - * @psalm-param Closure(T=):bool $p + * @psalm-param Closure(T):bool $p * * @return Collection A collection with the results of the filter operation. * @psalm-return Collection @@ -213,7 +213,7 @@ public function filter(Closure $p); * Tests whether the given predicate p holds for all elements of this collection. * * @param Closure $p The predicate. - * @psalm-param Closure(TKey=, T=):bool $p + * @psalm-param Closure(TKey, T):bool $p * * @return bool TRUE, if the predicate yields TRUE for all elements, FALSE otherwise. */ @@ -223,7 +223,7 @@ public function forAll(Closure $p); * Applies the given function to each element in the collection and returns * a new collection with the elements returned by the function. * - * @psalm-param Closure(T=):U $func + * @psalm-param Closure(T):U $func * * @return Collection * @psalm-return Collection @@ -237,7 +237,7 @@ public function map(Closure $func); * Keys are preserved in the resulting collections. * * @param Closure $p The predicate on which to partition. - * @psalm-param Closure(TKey=, T=):bool $p + * @psalm-param Closure(TKey, T):bool $p * * @return Collection[] An array with two elements. The first element contains the collection * of elements where the predicate returned TRUE, the second element