Skip to content

Commit 3a6d265

Browse files
committed
Remove not needed anymore ascii workaround
Ref: 62533e8 Signed-off-by: William Desportes <[email protected]>
1 parent 3cf7606 commit 3a6d265

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

src/Tools/TestGenerator.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
use PhpMyAdmin\SqlParser\Lexer;
1212
use PhpMyAdmin\SqlParser\Parser;
1313
use PhpMyAdmin\SqlParser\Token;
14-
use PhpMyAdmin\SqlParser\UtfString;
1514

1615
use function file_exists;
1716
use function file_get_contents;
@@ -26,7 +25,6 @@
2625
use function sprintf;
2726
use function str_contains;
2827
use function str_ends_with;
29-
use function str_replace;
3028
use function strpos;
3129
use function substr;
3230

@@ -176,15 +174,6 @@ public static function build($type, $input, $output, $debug = null, $ansi = fals
176174
// Writing test's data.
177175
$encoded = $serializer->serialize($test);
178176

179-
/**
180-
* Can not decode null char in keys.
181-
*
182-
* @see UtfString::$asciiMap
183-
*/
184-
if (str_contains($encoded, '"asciiMap":{"\u0000":0,"')) {
185-
$encoded = str_replace('"asciiMap":{"\u0000":0,"', '"asciiMap":{"', $encoded);
186-
}
187-
188177
$encoded = json_encode(
189178
json_decode($encoded),
190179
JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_PRESERVE_ZERO_FRACTION

0 commit comments

Comments
 (0)