Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Making Collection::toArray() drop the keys when dealing with Recursiv…
…eIterator I could not think of a falid case where losing data when converting to array was a desirable outcome. I fact this was a reason for a lot of hair-pulling situations and made it really difficult to explain certain collection features to some people. This new behavior makes more sense for the great majority of cases and reduces the risk of creating new bugs.
- Loading branch information
Showing
2 changed files
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters