8000 [Yaml] Added support for YAML 1.2 octal notation · symfony/symfony-docs@4cac282 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4cac282

Browse files
committed
[Yaml] Added support for YAML 1.2 octal notation
1 parent 5c6bdf0 commit 4cac282

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

components/yaml/yaml_format.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,13 @@ Numbers
122122
.. code-block:: yaml
123123
124124
# an octal
125-
014
125+
0o14
126+
127+
.. versionadded:: 5.1
128+
129+
In YAML 1.1, octal numbers used the notation ``0...``, whereas in YAML 1.2
130+
the notation changed to ``0o...``. Symfony 5.1 adds support for YAML 1.2
131+
notation and deprecates support for YAML 1.1 notation.
126132

127133
.. code-block:: yaml
128134

0 commit comments

Comments
 (0)
0