Ussing + operator to merge arrays, allows multiple depths

parent 57b6eb69
......@@ -36,7 +36,7 @@ final class FileIsCreating implements EntityIsChanging
*/
public function setAttributes(array $attributes)
{
$this->attributes = array_merge($this->attributes, $attributes);
$this->attributes += $attributes;
}
/**
......
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