Unverified Commit 12c6bfe2 authored by alexpott's avatar alexpott

Issue #3199691 by catch, abhisekmazumdar, longwave: [Symfony 6] Symfony no...

Issue #3199691 by catch, abhisekmazumdar, longwave: [Symfony 6] Symfony no longer parses octal numbers starting with 0 alone
parent 6ac3bcd3
......@@ -5,6 +5,10 @@ float: 3.14159
float_as_integer: !!float 1
hex: 0xC
int: 99
octal: 0775
# Symfony 5.1's YAML parser issues a deprecation when reading octal with a
# leading zero, to comply with YAML 1.2. However PECL YAML is still YAML 1.1
# compliant. @todo: revisit parsing of octal once PECL YAML supports YAML 1.2.
# @see https://www.drupal.org/project/drupal/issues/3205480
# octal: 0775
string: string
string_int: '1'
......@@ -281,7 +281,12 @@ public function testDataTypes() {
'float_as_integer' => (float) 1,
'hex' => 0xC,
'int' => 99,
'octal' => 0775,
// Symfony 5.1's YAML parser issues a deprecation when reading octal with
// a leading zero, to comply with YAML 1.2. However PECL YAML is still
// YAML 1.1 compliant.
// @todo: revisit parsing of octal once PECL YAML supports YAML 1.2.
// See https://www.drupal.org/project/drupal/issues/3205480
// 'octal' => 0775,
'string' => 'string',
'string_int' => '1',
];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment