-
Notifications
You must be signed in to change notification settings - Fork 322
Fixes #4743: Arr::path() to return associative array when wildcard used#352
Fixes #4743: Arr::path() to return associative array when wildcard used #352tommcdo wants to merge 2 commits into
Conversation
enov
commented
Nov 21, 2014
This is a well written bug fix, with tests. However, existing code relying on the numeric sequential keys of the output of this function will break, if we apply this fix.
@acoulton could you kindly comment what to do in this case?
acoulton
commented
Nov 21, 2014
Tricky. Since it changes the response, I think it would have to go to 3.4 with a clear note in the upgrade guide.
It will only be if end-user code is specifically looking at the keys, I think, that it's an issue - they'll still come out in the same sequence as far as I can see? It's probably quite an edge case, but still not safe for 3.3.
@tommcdo if you disagree we'd welcome your opinion.
tommcdo
commented
Nov 21, 2014
I think it's quite unlikely that users are currently relying on the numerical keys with the current implementation, since they're quite frankly not useful at all. However, this is not strictly a bug fix, so it's perfectly reasonable to hold off until 3.4.
enov
commented
Nov 22, 2014
However, this is not strictly a bug fix, so it's perfectly reasonable to hold off until 3.4.
@tommcdo could you please PR this to 3.4/develop branch.
neo22s
commented
Mar 21, 2016
What we do with this? to 4.0.0? Looks good to me.
acoulton
commented
Mar 21, 2016
I suggest a contrib manually merges this PR to the 4.0 branch and adds to upgrade notes
Fixes: http://dev.kohanaframework.org/issues/4743