From 3eb951d206f6f6341bd4cac2a4db06168de2c593 Mon Sep 17 00:00:00 2001 From: Can Vural Date: Wed, 15 Sep 2021 12:32:09 +0200 Subject: [PATCH 1/2] Fixes invalid PHPDoc syntax --- src/Illuminate/Collections/Enumerable.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Collections/Enumerable.php b/src/Illuminate/Collections/Enumerable.php index df98aa53856f..0cba6aec5a96 100644 --- a/src/Illuminate/Collections/Enumerable.php +++ b/src/Illuminate/Collections/Enumerable.php @@ -255,7 +255,7 @@ public function each(callable $callback); /** * Execute a callback over each nested chunk of items. * - * @param callable(...mixed): mixed $callback + * @param callable(mixed ...$args): mixed $callback * @return static */ public function eachSpread(callable $callback); @@ -606,7 +606,7 @@ public function map(callable $callback); * * @template TMapSpreadValue * - * @param callable(...mixed): TMapSpreadValue $callback + * @param callable(mixed ...$args): TMapSpreadValue $callback * @return static */ public function mapSpread(callable $callback); From 2832ecc98401b587b4f3a835da624d43efb7a2dd Mon Sep 17 00:00:00 2001 From: Can Vural Date: Wed, 15 Sep 2021 12:48:45 +0200 Subject: [PATCH 2/2] Update PHPDocs --- src/Illuminate/Collections/Enumerable.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Illuminate/Collections/Enumerable.php b/src/Illuminate/Collections/Enumerable.php index 0cba6aec5a96..db94c741c981 100644 --- a/src/Illuminate/Collections/Enumerable.php +++ b/src/Illuminate/Collections/Enumerable.php @@ -255,7 +255,7 @@ public function each(callable $callback); /** * Execute a callback over each nested chunk of items. * - * @param callable(mixed ...$args): mixed $callback + * @param callable $callback * @return static */ public function eachSpread(callable $callback); @@ -604,10 +604,8 @@ public function map(callable $callback); /** * Run a map over each nested chunk of items. * - * @template TMapSpreadValue - * - * @param callable(mixed ...$args): TMapSpreadValue $callback - * @return static + * @param callable $callback + * @return static */ public function mapSpread(callable $callback);