Skip to content

[12.x] Use reject() instead of a negated filter()#53925

Merged
taylorotwell merged 1 commit into
laravel:masterfrom
shaedrich:fix-negated-filter-reject
Dec 16, 2024
Merged

[12.x] Use reject() instead of a negated filter()#53925
taylorotwell merged 1 commit into
laravel:masterfrom
shaedrich:fix-negated-filter-reject

Conversation

@shaedrich

Copy link
Copy Markdown
Contributor

No description provided.

@taylorotwell taylorotwell merged commit 8660d95 into laravel:master Dec 16, 2024
@browner12

Copy link
Copy Markdown
Contributor

I would argue against this and say negated filters are better because they have a simpler call stack.

@shaedrich

Copy link
Copy Markdown
Contributor Author

To achieve this, you would have to remove the reject() method entirely, but this isn't possible 🤷🏻

@shaedrich shaedrich deleted the fix-negated-filter-reject branch December 16, 2024 17:16
@browner12

Copy link
Copy Markdown
Contributor

huh? we could just not use this change.

@taylorotwell obviously the impact is minor, but did you merge for improved readability? thoughts on the tradeoff with the increased call stack?

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.

3 participants