From 2270a54cdb4fe74f29783e90f43ca92c258ca7a1 Mon Sep 17 00:00:00 2001 From: Gregor Harlan Date: Wed, 21 Feb 2024 17:01:20 +0100 Subject: [PATCH] reduce method: more accurate types --- src/ReadableCollection.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ReadableCollection.php b/src/ReadableCollection.php index 53d0bf37..a8dbd43f 100644 --- a/src/ReadableCollection.php +++ b/src/ReadableCollection.php @@ -229,11 +229,11 @@ public function findFirst(Closure $p); * Applies iteratively the given function to each element in the collection, * so as to reduce the collection to a single value. * - * @psalm-param Closure(TReturn|TInitial|null, T):(TInitial|TReturn) $func - * @psalm-param TInitial|null $initial + * @psalm-param Closure(TReturn|TInitial, T):TReturn $func + * @psalm-param TInitial $initial * * @return mixed - * @psalm-return TReturn|TInitial|null + * @psalm-return TReturn|TInitial * * @psalm-template TReturn * @psalm-template TInitial