Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Arrays/Arr.php
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ public static function map_or_discard( $keys, array $map, bool &$found = true )
*
* @return array
*/
function merge_recursive( array &$array1, array &$array2 ): array {
public static function merge_recursive( array &$array1, array &$array2 ): array {
$merged = $array1;

foreach ( $array2 as $key => &$value ) {
Expand Down Expand Up @@ -1176,7 +1176,7 @@ public static function sort_by_priority( $array ): array {
*
* @return int
*/
protected static function sort_by_priority_comparison( $a, $b ): int {
public static function sort_by_priority_comparison( $a, $b ): int {
if ( is_array( $a ) ) {
$a_priority = $a['priority'];
} else {
Expand Down