### Symfony version(s) affected 7.1 ### Description There is no way to dump a YAML section "without values". ### How to reproduce Dumping the following "Docker Compose volumes section": ```php $yaml = Yaml::dump([ 'volumes' => [ 'db-data' => null, ], ]); ``` Will result in: ```yaml volumes: db-data: null ``` Using an empty string istead will result in: ```yaml volumes: db-data: '' ``` There is actually no way to dump "without value" like: ```yaml volumes: db-data: ``` ### Possible Solution _No response_ ### Additional Context _No response_