-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Closed
Labels
Description
Hi,
When I use the YAML Component in my project, I use $dumper = new Symfony\Component\Yaml\Dumper();
Then I do $dumper->dump($myarray, 2).
When $myarray is not empty, the YAML file generated is nicely indented.
When $myarray is empty, the YAML file generated is { } instead of an empty file.
I think it's a forgotten feature.