We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ef5ed6 commit ac55f9dCopy full SHA for ac55f9d
1 file changed
src/JsonResponse.php
@@ -85,7 +85,7 @@ private function encode($data, int $options): string
85
$json = json_encode($data, $options);
86
87
if (JSON_ERROR_NONE !== json_last_error()) {
88
- throw new JsonException((string) json_last_error_msg());
+ throw new JsonException(json_last_error_msg());
89
}
90
91
return $json;
0 commit comments