8000 fix more numeric cases changing in PHP 8 · symfony/symfony@70514c6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 70514c6

Browse files
committed
fix more numeric cases changing in PHP 8
1 parent 4b3d5b6 commit 70514c6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Symfony/Component/Yaml/Tests/InlineTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,14 @@ public function getTestsForDump()
570570
['[foo, \'@foo.baz\', { \'%foo%\': \'foo is %foo%\', bar: \'%foo%\' }, true, \'@service_container\']', ['foo', '@foo.baz', ['%foo%' => 'foo is %foo%', 'bar' => '%foo%' 9384 ], true, '@service_container']],
571571

572572
['{ foo: { bar: { 1: 2, baz: 3 } } }', ['foo' => ['bar' => [1 => 2, 'baz' => 3]]]],
573+
574+
// numeric strings with trailing whitespaces
575+
["'0123 '", '0123 '],
576+
['"0123\f"', "0123\f"],
577+
['"0123\n"', "0123\n"],
578+
['"0123\r"', "0123\r"],
579+
['"0123\t"', "0123\t"],
580+
['"0123\v"', "0123\v"],
573581
];
574582
}
575583

0 commit comments

Comments
 (0)
0