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
453
453
Dumping Collection of Maps
454
454
~~~~~~~~~~~~~~~~~~~~~~~~~~
455
455
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:
460
458
461
459
.. code-block :: yaml
462
460
@@ -468,7 +466,8 @@ Dump without flag set:
468
466
name : Jupiter
469
467
distance : 778500000
470
468
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:
472
471
473
472
.. code-block :: yaml
474
473
@@ -478,6 +477,10 @@ Dump with ``Yaml::DUMP_COMPACT_NESTED_MAPPING`` flag set:
478
477
- name : Jupiter
479
478
distance : 778500000
480
479
480
+ .. versionadded :: 7.3
481
+
482
+ The ``Yaml::DUMP_COMPACT_NESTED_MAPPING `` flag was introduced in Symfony 7.3.
483
+
481
484
Syntax Validation
482
485
~~~~~~~~~~~~~~~~~
483
486
You can’t perform that action at this time.
0 commit comments