We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36eb818 commit c5479ddCopy full SHA for c5479dd
src/Symfony/Component/HttpFoundation/JsonResponse.php
@@ -106,7 +106,7 @@ public function setData($data = array())
106
// PHP 5.3 triggers annoying warnings for some
107
// types that can't be serialized as JSON (INF, resources, etc.)
108
// but doesn't provide the JsonSerializable interface.
109
- set_error_handler('var_dump', 0);
+ set_error_handler(function () { return false; });
110
$data = @json_encode($data, $this->encodingOptions);
111
} else {
112
// PHP 5.4 and up wrap exceptions thrown by JsonSerializable
0 commit comments