X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2FArrayUtils.php;h=e23888779f9aaf62b66da05d736c83b722fced43;hb=9cbb8f104d66b9b1a5497e12cd931a3827f6b5b3;hp=2156bd7f1dd5b1f137c5a4408bee8fed8d3b0471;hpb=96519cfa9746652c143d927b0089324e1f86f6c0;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/ArrayUtils.php b/includes/libs/ArrayUtils.php index 2156bd7f1d..e23888779f 100644 --- a/includes/libs/ArrayUtils.php +++ b/includes/libs/ArrayUtils.php @@ -39,7 +39,7 @@ class ArrayUtils { * justification for breaking compatibility with installations * compiled with ./configure --disable-hash. * - * @param array $array Array to sort + * @param array &$array Array to sort * @param string $key * @param string $separator A separator used to delimit the array elements and the * key. This can be chosen to provide backwards compatibility with @@ -120,8 +120,8 @@ class ArrayUtils { $max = $valueCount; do { $mid = $min + ( ( $max - $min ) >> 1 ); - $item = call_user_func( $valueCallback, $mid ); - $comparison = call_user_func( $comparisonCallback, $target, $item ); + $item = $valueCallback( $mid ); + $comparison = $comparisonCallback( $target, $item ); if ( $comparison > 0 ) { $min = $mid; } elseif ( $comparison == 0 ) { @@ -133,8 +133,8 @@ class ArrayUtils { } while ( $min < $max - 1 ); if ( $min == 0 ) { - $item = call_user_func( $valueCallback, $min ); - $comparison = call_user_func( $comparisonCallback, $target, $item ); + $item = $valueCallback( $min ); + $comparison = $comparisonCallback( $target, $item ); if ( $comparison < 0 ) { // Before the first item return false; @@ -168,7 +168,7 @@ class ArrayUtils { $args[] = $array[$key]; } } - $valueret = call_user_func_array( __METHOD__, $args ); + $valueret = self::arrayDiffAssocRecursive( ...$args ); if ( count( $valueret ) ) { $ret[$key] = $valueret; }