Skip to content

Commit 05aacc2

Browse files
committed
Minor tweaks
1 parent 7261af2 commit 05aacc2

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

components/yaml.rst

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -453,10 +453,8 @@ By default, digit-only array keys are dumped as integers. You can use the
453453
Dumping Collection of Maps
454454
~~~~~~~~~~~~~~~~~~~~~~~~~~
455455

456-
By default, the collection of maps uses a hyphen on a separate line as a delimiter.
457-
To use the delimiter line as part of the map dump, use the ``Yaml::DUMP_COMPACT_NESTED_MAPPING`` flag.
458-
459-
Dump without flag set:
456+
When the YAML component dumps collections of maps, it uses a hyphen on a separate
457+
line as a delimiter:
460458

461459
.. code-block:: yaml
462460
@@ -468,7 +466,8 @@ Dump without flag set:
468466
name: Jupiter
469467
distance: 778500000
470468
471-
Dump with ``Yaml::DUMP_COMPACT_NESTED_MAPPING`` flag set:
469+
To produce a more compact output where the delimiter is included within the map,
470+
use the ``Yaml::DUMP_COMPACT_NESTED_MAPPING`` flag:
472471

473472
.. code-block:: yaml
474473
@@ -478,6 +477,10 @@ Dump with ``Yaml::DUMP_COMPACT_NESTED_MAPPING`` flag set:
478477
- name: Jupiter
479478
distance: 778500000
480479
480+
.. versionadded:: 7.3
481+
482+
The ``Yaml::DUMP_COMPACT_NESTED_MAPPING`` flag was introduced in Symfony 7.3.
483+
481484
Syntax Validation
482485
~~~~~~~~~~~~~~~~~
483486

0 commit comments

Comments
 (0)