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 f694dc1 commit 7b1455bCopy full SHA for 7b1455b
src/Formatters/Json.php
@@ -6,7 +6,7 @@
6
7
function format(array $diff): string
8
{
9
- $json = json_encode($diff, JSON_PRETTY_PRINT);
+ $json = json_encode($diff, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_THROW_ON_ERROR);
10
11
if (json_last_error() !== JSON_ERROR_NONE) {
12
throw new \Exception("JSON encoding error: " . json_last_error_msg());
0 commit comments