We want the local configuration ($GLOBALS[$key]) to override the default
values ($val). This matches what `array_merge` does.
Bug: T112868
Change-Id: I9c333a1fa67d3f24e09ffed3072b2897389f6139
$GLOBALS[$key] = wfArrayPlus2d( $GLOBALS[$key], $val );
break;
case 'array_plus':
- $GLOBALS[$key] = $val + $GLOBALS[$key];
+ $GLOBALS[$key] += $val;
break;
case 'array_merge':
$GLOBALS[$key] = array_merge( $val, $GLOBALS[$key] );
)
),
array(
- 'Global already set, 2d array with integer keys',
+ 'Global already set, array with integer keys',
array(
'mwNamespacesFoo' => array(
100 => true,
),
array(
'mwNamespacesFoo' => array(
- 100 => false,
+ 100 => true,
102 => false,
500 => true,
),