Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[HttpFoundation] Throw proper exception when invalid data is passed to JsonResponse class #9908

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

Merged
merged 1 commit into from
Dec 31, 2013

Conversation

stloyd
Copy link
Contributor

@stloyd stloyd commented Dec 30, 2013

Q A
Bug fix? yes
BC breaks? no*
Tests pass? yes
Fixed tickets #9903
License MIT

* as described in mentioned issue, before this PR there was thrown exception UnexpectedValueException, which was not correct, but I guess some people trying to hide the bug could use try {} catch on it.

fabpot added a commit that referenced this pull request Dec 31, 2013
…s passed to JsonResponse class (stloyd)

This PR was merged into the 2.3 branch.

Discussion
----------

[HttpFoundation] Throw proper exception when invalid data is passed to JsonResponse class

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| BC breaks?    | no*
| Tests pass?   | yes
| Fixed tickets | #9903
| License       | MIT

\* as described in mentioned issue, before this PR there was thrown exception `UnexpectedValueException`, which was not correct, but I guess some people trying to hide the bug could use `try {} catch` on it.

Commits
-------

38287e7 [HttpFoundation] Throw proper exception when invalid data is passed to JsonResponse class
@fabpot fabpot merged commit 38287e7 into symfony:2.3 Dec 31, 2013
@stloyd stloyd deleted the bugfix/issue_9903 branch December 31, 2013 12:33
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