Skip to content
Discussion options

You must be logged in to vote

I'm not sure why it's appropriate to convert this bug report into a discussion. As a discussion, the community is more likely to lose focus on this.

One of the greatest things about Laravel, and using a framework in general, is that we're able to very easily implement solutions to non-trivial issues, or like in this case, bugs within the PHP core. This is not unprecedented, take this lovely commit by @taylorotwell to work around a PHP bug in the MailServiceProvider.

The issue as it exists in Laravel was only introduced 4 years ago. Prior to that, the unique() method was correct, albeit slow.

The PRs I introduced for the new uniqueStrings() and duplicateStrings() methods would at least pro…

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@macropay-solutions
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jmarble
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #57528 on October 27, 2025 12:16.