Page MenuHomePhabricator

33 Invalid operand type was used: cannot perform this operation with arrays in /srv/mediawiki/php-1.34.0-wmf.6/includes/GlobalFunctions.php on line 3177
Closed, DuplicatePublic

Description

Error

Request URL:
Request ID: INSERT_ID

message
trace
gotta find the caller/trace!

PHP code, untouched for a while.

includes/GlobalFunctions.php
3173 function wfArrayPlus2d( array $baseArray, array $newValues ) {
3174     // First merge items that are in both arrays
3175     foreach ( $baseArray as $name => &$groupVal ) {
3176         if ( isset( $newValues[$name] ) ) {
3177             $groupVal += $newValues[$name];
3178         }
3179     }
3180     // Now add items that didn't exist yet
3181     $baseArray += $newValues;
3182 
3183     return $baseArray;
3184 }

Impact

Notes