Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: collapseWithKeys on empty collection #54290

Merged
merged 3 commits into from
Jan 21, 2025
Merged

Conversation

benatoff
Copy link
Contributor

This goes with issue #54289 .
Early returns out of the function collapseWithKeys to avoid an ArgumentCountError when called on an empty collection

@taylorotwell taylorotwell merged commit 6e0e2cb into laravel:11.x Jan 21, 2025
38 checks passed
@crynobone crynobone linked an issue Jan 22, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ArgumentCountError when collapseWithKeys on empty Collection
2 participants