Use array_replace to merge attributes
Merge pull request #70 from stof/patch-1

Use array_replace to merge attributes