Skip to content

Commit ac55f9d

Browse files
committed
Remove redundant cast to string in JsonResponse::encode()
1 parent 2ef5ed6 commit ac55f9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ private function encode($data, int $options): string
8585
$json = json_encode($data, $options);
8686

8787
if (JSON_ERROR_NONE !== json_last_error()) {
88-
throw new JsonException((string) json_last_error_msg());
88+
throw new JsonException(json_last_error_msg());
8989
}
9090

9191
return $json;

0 commit comments

Comments
 (0)