dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "languages: Add NS_CATEGORY and #REDIRECT for hyw"
[lhc/web/wiklou.git]
/
includes
/
libs
/
ArrayUtils.php
diff --git
a/includes/libs/ArrayUtils.php
b/includes/libs/ArrayUtils.php
index
e238887
..
ccc76bb
100644
(file)
--- 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
* @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.
*/
* @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 ) {
$ret = [];
foreach ( $array1 as $key => $value ) {