diff --git a/src/Util/Stream/DataStream.php b/src/Util/Stream/DataStream.php index 746f5eb..d5df6d2 100644 --- a/src/Util/Stream/DataStream.php +++ b/src/Util/Stream/DataStream.php @@ -541,10 +541,12 @@ public function eachToArray(callable $func, array $arr = []): array } /** + * Each item to map + * * @param callable(array|mixed): array{string, mixed} $func * @param array $map * - * @return array + * @return array return the map key and value */ public function eachToMap(callable $func, array $map = []): array {