Unverified Commit 12c6bfe2 authored by Alex Pott's avatar Alex Pott
Browse files

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
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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'
+6 −1
Original line number Diff line number Diff line
@@ -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',
    ];