8000 bug #26228 [HttpFoundation] Fix missing "throw" in JsonResponse (nico… · symfony/symfony@820ad07 · GitHub
[go: up one dir, main page]

Skip to content

Commit 820ad07

Browse 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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/HttpFoundation/JsonResponse.php

Lines 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