Upgrade to 3.9.3
This commit is contained in:
@@ -838,11 +838,13 @@ abstract class FieldClass
|
||||
*/
|
||||
protected function valueToJson(array $value = null, bool $pretty = false): string
|
||||
{
|
||||
$constants = JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE;
|
||||
|
||||
if ($pretty === true) {
|
||||
return json_encode($value, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
|
||||
$constants |= JSON_PRETTY_PRINT;
|
||||
}
|
||||
|
||||
return json_encode($value);
|
||||
return json_encode($value, $constants);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user