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

[8.x] Fix the whereDoesntStartWith method #34327

Merged
merged 1 commit into from
Sep 14, 2020
Merged

[8.x] Fix the whereDoesntStartWith method #34327

merged 1 commit into from
Sep 14, 2020

Conversation

crnkovic
Copy link
Contributor

When $attributes->whereDoesntStartWith() is called from the Blade template, an exception is thrown because the ComponentAttributeBag class tries to use a reject method, but that method does not exist on the class. So this PR changes from reject to filter with negated callback.

@crnkovic crnkovic changed the title [8.0] Fix the whereDoesntStartWith method [8.x] Fix the whereDoesntStartWith method Sep 14, 2020
@taylorotwell taylorotwell merged commit 96ee350 into laravel:8.x Sep 14, 2020
@driesvints
Copy link
Member

@crnkovic can you send this to 6.x as well?

@crnkovic
Copy link
Contributor Author

@crnkovic can you send this to 6.x as well?

you mean 7.x 😃 just did #34329

@driesvints
Copy link
Member

@crnkovic ah no sorry, I did meant 6.x but that version doesn't has Blade components of course 🤦‍♂️

So nevermind.

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