Ability to replace key in ArrayUtils::merge#6903
Conversation
There was a problem hiding this comment.
I would also suggest making this final
There was a problem hiding this comment.
Why? By final we close the doors to extending logic in this class. I see use case where someone want to add filter to this.
There was a problem hiding this comment.
Yes, this is indeed what final is for. This object is just a thin data wrapper, and I don't see any advantage in extending it, not even in cases where you want to fetch data from, say, a DB connection.
If you think there is a use-case for extension, then I suggest interfacing it instead, and making this concrete implementation final
There was a problem hiding this comment.
The interface makes sense
|
@snapshotpl manually merged, thank you!
|
…ReplaceKeyInterface`
…removing inherited docblock documentation
…ly introduced tests
…g-keys-in-array-utils' into develop Close zendframework/zendframework#6903
It's related with remove key #6899 @Ocramius