Skip to content

Commit

Permalink
Add Arr::merge()
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Nov 8, 2023
1 parent a7b9853 commit 8938947
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/utilities/src/Arr.php
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,18 @@ public static function mapRecursive(
return $result;
}

/**
* A simple merge proxy to avoid resources greedy construction.
*
* @param ...$args
*
* @return array
*/
public static function merge(...$args): array
{
return array_merge(...$args);
}

/**
* Merge array recursively.
*
Expand Down

0 comments on commit 8938947

Please sign in to comment.