Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Yaml Component]  #15937

Copy link
Copy link
Closed
Closed
Copy link
@pelallemant

Description

@pelallemant
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.