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.3] Let setData handles data transformation #15137

Merged
merged 1 commit into from
Aug 30, 2016
Merged

[5.3] Let setData handles data transformation #15137

merged 1 commit into from
Aug 30, 2016

Conversation

lucasmichot
Copy link
Contributor

@lucasmichot lucasmichot commented Aug 29, 2016

It does not make any sense to restrict the type of data at the instantiation, but not when setting data with \Illuminate\Http\JsonResponse::setData.

At the very end, setData is used, so no need to transform data and pass an array.


Hesitating on which branch to target tho

@GrahamCampbell
Copy link
Member

This probably needs doing on 5.4 instead.

@lucasmichot
Copy link
Contributor Author

This probably needs doing on 5.4 instead.

This is also what I thought @GrahamCampbell , this also reminds me #11988

@taylorotwell taylorotwell merged commit 51a85f1 into laravel:5.3 Aug 30, 2016
@lucasmichot lucasmichot deleted the feature/master/routing-response-factory-json branch August 30, 2016 15:34
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