File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -453,10 +453,8 @@ By default, digit-only array keys are dumped as integers. You can use the
453453Dumping 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+
481484Syntax Validation
482485~~~~~~~~~~~~~~~~~
483486
You can’t perform that action at this time.
0 commit comments