Skip to content

Commit 30a10d4

Browse files
committed
modify $response->json() method encodingOptions argument default value to JSON_UNESCAPED_UNICODE from 0
1 parent 2eaca4f commit 30a10d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Server/Response.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,9 @@ public function raw(string $data = '', int $status = 200): Response
9191
* @param int $status The HTTP status code.
9292
* @param int $encodingOptions Json encoding options
9393
* @return static when $data not jsonable
94+
* @throws \InvalidArgumentException
9495
*/
95-
public function json($data = [], int $status = 200, int $encodingOptions = 0): Response
96+
public function json($data = [], int $status = 200, int $encodingOptions = JSON_UNESCAPED_UNICODE): Response
9697
{
9798
$response = $this;
9899

0 commit comments

Comments
 (0)