X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2Flibs%2FArrayUtils.php;h=ccc76bb77ba45697b966455afbd088ee69e51ff6;hb=9bbb26ffbd16edbaccce27461730fa9e172aa048;hp=e23888779f9aaf62b66da05d736c83b722fced43;hpb=8c96aec32cffaab96b2bd9dca206a99a13640545;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/ArrayUtils.php b/includes/libs/ArrayUtils.php index e23888779f..ccc76bb77b 100644 --- a/includes/libs/ArrayUtils.php +++ b/includes/libs/ArrayUtils.php @@ -151,13 +151,11 @@ class ArrayUtils { * @since 1.23 * * @param array $array1 The array to compare from - * @param array $array2,... More arrays to compare against + * @param array ...$arrays More arrays to compare against * @return array An array containing all the values from array1 * that are not present in any of the other arrays. */ - public static function arrayDiffAssocRecursive( $array1 ) { - $arrays = func_get_args(); - array_shift( $arrays ); + public static function arrayDiffAssocRecursive( $array1, ...$arrays ) { $ret = []; foreach ( $array1 as $key => $value ) {