Skip to content

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