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

Skip to content

Commit 7490f0b

Browse files
[HttpFoundation] Fix missing "throw" in JsonResponse
1 parent 781c64c commit 7490f0b

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)