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

[5.0] Fix cookies with falsey values #617

Merged
merged 1 commit into from
Feb 28, 2019
Merged

Conversation

staudenmeir
Copy link
Contributor

The loose comparison doesn't work with falsey values like 0 or '':

$browser->cookie('foo', 0); // Gets the cookie instead of setting it.

@taylorotwell taylorotwell merged commit 3f6312a into laravel:5.0 Feb 28, 2019
@staudenmeir staudenmeir deleted the cookie branch February 28, 2019 21:56
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