From b4eca77c9114cc87da27b6ad8c6fee3145149a1a Mon Sep 17 00:00:00 2001 From: "Md. Mottasin Lemon" Date: Fri, 28 Jun 2024 18:42:30 +0600 Subject: [PATCH 1/3] feat: improve & fix ide warning in doc-block --- src/Illuminate/Collections/Arr.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Illuminate/Collections/Arr.php b/src/Illuminate/Collections/Arr.php index 605f71499b93..7a2370fbd46e 100644 --- a/src/Illuminate/Collections/Arr.php +++ b/src/Illuminate/Collections/Arr.php @@ -642,9 +642,10 @@ public static function mapWithKeys(array $array, callable $callback) /** * Run a map over each nested chunk of items. * + * @template TKey * @template TMapSpreadValue * - * @param array $array + * @param array $array * @param callable(mixed...): TMapSpreadValue $callback * @return array */ From e14daed30f630ba427c855db9b50e7858234605a Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 28 Jun 2024 22:06:32 +0200 Subject: [PATCH 2/3] Update src/Illuminate/Collections/Arr.php Co-authored-by: Caleb White --- src/Illuminate/Collections/Arr.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Collections/Arr.php b/src/Illuminate/Collections/Arr.php index 7a2370fbd46e..aa600a98962d 100644 --- a/src/Illuminate/Collections/Arr.php +++ b/src/Illuminate/Collections/Arr.php @@ -643,7 +643,7 @@ public static function mapWithKeys(array $array, callable $callback) * Run a map over each nested chunk of items. * * @template TKey - * @template TMapSpreadValue + * @template TValue * * @param array $array * @param callable(mixed...): TMapSpreadValue $callback From 2eb7b68e5f5270f8b51b6661a40a48f73d110f41 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 28 Jun 2024 22:06:59 +0200 Subject: [PATCH 3/3] Update Arr.php --- src/Illuminate/Collections/Arr.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Collections/Arr.php b/src/Illuminate/Collections/Arr.php index aa600a98962d..cddcde2ecc9f 100644 --- a/src/Illuminate/Collections/Arr.php +++ b/src/Illuminate/Collections/Arr.php @@ -646,8 +646,8 @@ public static function mapWithKeys(array $array, callable $callback) * @template TValue * * @param array $array - * @param callable(mixed...): TMapSpreadValue $callback - * @return array + * @param callable(mixed...): TValue $callback + * @return array */ public static function mapSpread(array $array, callable $callback) {