Commit 976f94da authored by labboy0276's avatar labboy0276 Committed by heddn

Issue #3087401 by labboy0276, heddn: Consider Using The Splat Operator In The Merge Plugin

parent cc28eaf5
......@@ -60,9 +60,10 @@ class Merge extends ProcessPluginBase {
if (!is_array($item)) {
throw new MigrateException(sprintf('Merge process failed for destination property (%s): index (%s) in the source value is not an array that can be merged.', $destination_property, $i));
}
$new_value = array_merge($new_value, $item);
$new_value[] = $item;
}
return $new_value;
return array_merge(...$new_value);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment