$values += $default_value; gives an array that is different from the array returned from array_merge($values, $default_value);. It can be verified with the following code.
Furthermore, the error reported in the issue is Unsupported operand types: string + array, which means $values is a string. The code used in this merge request would use an empty array instead of a string, which probably would cause issues later.
$values += $default_value;
gives an array that is different from the array returned fromarray_merge($values, $default_value);
. It can be verified with the following code.Furthermore, the error reported in the issue is Unsupported operand types: string + array, which means
$values
is a string. The code used in this merge request would use an empty array instead of a string, which probably would cause issues later.