Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 820ad07

Browse filesBrowse files
bug #26228 [HttpFoundation] Fix missing "throw" in JsonResponse (nicolas-grekas)
This PR was merged into the 2.7 branch. Discussion ---------- [HttpFoundation] Fix missing "throw" in JsonResponse | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- 7490f0b [HttpFoundation] Fix missing "throw" in JsonResponse
2 parents 781c64c + 7490f0b commit 820ad07
Copy full SHA for 820ad07

File tree

1 file changed

+1
-0
lines changed
Filter options

1 file changed

+1
-0
lines changed

‎src/Symfony/Component/HttpFoundation/JsonResponse.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/JsonResponse.php
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ public function setData($data = array())
148148
if (\PHP_VERSION_ID < 50500 || !interface_exists('JsonSerializable', false)) {
149149
restore_error_handler();
150150
}
151+
throw $e;
151152
} catch (\Exception $e) {
152153
if (\PHP_VERSION_ID < 50500 || !interface_exists('JsonSerializable', false)) {
153154
restore_error_handler();

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.