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

[9.x] Remove redundant collection #42074

Merged
merged 1 commit into from
Apr 21, 2022
Merged

[9.x] Remove redundant collection #42074

merged 1 commit into from
Apr 21, 2022

Conversation

sebdesign
Copy link
Contributor

The TransformRequests middleware has a redundant collection, where an array is being cast into a collection using collect(), and then the collection is cast into an array using all().

This thing is a remnant from #36002, because before that the arrays were manipulated using collections. But since that PR, the collection is not doing anything, so it's safe to remove.

@GrahamCampbell GrahamCampbell changed the title Remove redundant collection [9.x] Remove redundant collection Apr 21, 2022
@taylorotwell taylorotwell merged commit b18678b into laravel:9.x Apr 21, 2022
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.

2 participants