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 Blade component falsy slots #38546

Merged
merged 2 commits into from
Aug 25, 2021
Merged

[8.x] Fix Blade component falsy slots #38546

merged 2 commits into from
Aug 25, 2021

Conversation

danharrin
Copy link
Contributor

Fixes #38542.

@danharrin
Copy link
Contributor Author

Checking out the failing tests now.

@browner12
Copy link
Contributor

I think you need to leave out the second condition still, so it behaves the same as prior to your change.

Otherwise this will not work:

@slot('key', null)

@danharrin
Copy link
Contributor Author

I think you need to leave out the second condition still, so it behaves the same as prior to your change.

Otherwise this will not work:

@slot('key', null)

Have you tested that? I'm pretty sure it will still work as I used || not &&.

@browner12
Copy link
Contributor

Ahh my bad, yes it works.

@taylorotwell taylorotwell merged commit 7134356 into laravel:8.x Aug 25, 2021
@danharrin danharrin deleted the bug/blade-component-falsy-slots branch August 25, 2021 21:52
@GrahamCampbell GrahamCampbell changed the title Fix Blade component falsy slots [8.x] Fix Blade component falsy slots Aug 25, 2021
@browner12
Copy link
Contributor

Will there be a patch release for this?

@Jubeki
Copy link
Contributor

Jubeki commented Aug 27, 2021

@TBlindaruk can this be released in a patch version?

@driesvints
Copy link
Member

We released v8.57.0 with this. Thanks all

victorvilella pushed a commit to cdsistemas/framework that referenced this pull request Oct 12, 2021
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.

Blade slots no longer accept "falsy" values
5 participants