Skip to content

[Yaml Component]  #15937

Closed
Closed
@pelallemant

Description

@pelallemant

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions