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.5] Allow @json options to be 0 #21692

Merged
merged 1 commit into from
Oct 16, 2017
Merged

[5.5] Allow @json options to be 0 #21692

merged 1 commit into from
Oct 16, 2017

Conversation

KristofMorva
Copy link
Contributor

Currently we set the @JSON helper's $options if it is evaluated to false; however, it makes it impossible to set 0 for it.

For example in the current behavior @json($array,0) means the same as @json($array), which will have a default $options set (which is obviously not what the coder intends to do).

@KristofMorva KristofMorva changed the title Allow options to be 0 for @json [5.5] Allow @json options to be 0 Oct 16, 2017
@taylorotwell taylorotwell merged commit 7d29851 into laravel:5.5 Oct 16, 2017
@KristofMorva KristofMorva deleted the json-fix branch October 16, 2017 17:06
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