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.7] Code improvements for TestResponse::parseJsonWhilePreservingEmptyObjects #26508

Merged
merged 2 commits into from
Nov 14, 2018
Merged

[5.7] Code improvements for TestResponse::parseJsonWhilePreservingEmptyObjects #26508

merged 2 commits into from
Nov 14, 2018

Conversation

vlakoff
Copy link
Contributor

@vlakoff vlakoff commented Nov 13, 2018

Follow-up to #26353 (and e6ebc8d).

  • Avoids doing the object-to-array cast twice (such cast can be somewhat costly)
  • Avoids the nested method call, mainly for simplification, and also for performance

@taylorotwell taylorotwell merged commit ae04918 into laravel:5.7 Nov 14, 2018
@vlakoff vlakoff deleted the TestResponse branch November 15, 2018 03:17
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.

None yet

2 participants