Skip to content

Commit

Permalink
[11.x] Improve PHPDoc for mapSpread Method in Arr Class & Remove …
Browse files Browse the repository at this point in the history
…Warning from IDE (#51952)

* feat: improve & fix ide warning in doc-block

* Update src/Illuminate/Collections/Arr.php

Co-authored-by: Caleb White <cdwhite3@pm.me>

* Update Arr.php

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
Co-authored-by: Caleb White <cdwhite3@pm.me>
  • Loading branch information
3 people authored Jun 28, 2024
1 parent 2af00f1 commit bbb4678
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Illuminate/Collections/Arr.php
Original file line number Diff line number Diff line change
Expand Up @@ -642,11 +642,12 @@ public static function mapWithKeys(array $array, callable $callback)
/**
* Run a map over each nested chunk of items.
*
* @template TMapSpreadValue
* @template TKey
* @template TValue
*
* @param array $array
* @param callable(mixed...): TMapSpreadValue $callback
* @return array<TKey, TMapSpreadValue>
* @param array<TKey, array> $array
* @param callable(mixed...): TValue $callback
* @return array<TKey, TValue>
*/
public static function mapSpread(array $array, callable $callback)
{
Expand Down

0 comments on commit bbb4678

Please sign in to comment.