Add checks for unicode characters

This commit is contained in:
Andrea Marco Sartori 2022-11-08 22:09:06 +10:00
parent 1d85f387d7
commit a5146b2ef6
4 changed files with 4 additions and 2 deletions

View File

@ -1 +1 @@
[1, "", "foo", "\"bar\"", 3.14, false, null, [], {}]
[1, "", "foo", "\"bar\"", "hej då", 3.14, false, null, [], {}]

View File

@ -1,3 +1,3 @@
<?php
return [1, '', 'foo', '"bar"', 3.14, false, null, [], []];
return [1, '', 'foo', '"bar"', 'hej då', 3.14, false, null, [], []];

View File

@ -4,6 +4,7 @@
"string": "foo",
"escaped_string": "\"bar\"",
"\"escaped_key\"": "baz",
"unicode": "hej då",
"float": 3.14,
"bool": false,
"null": null,

View File

@ -6,6 +6,7 @@ return [
'string' => 'foo',
'escaped_string' => '"bar"',
'"escaped_key"' => 'baz',
"unicode" => "hej då",
'float' => 3.14,
'bool' => false,
'null' => null,