Skip to content

[YAML] weird sequence-in-mapping error #8077

Closed
@indeyets

Description

@indeyets

This YAML code is parsed just fine:

---
a:
- b: c

But this code:

---
a:
-
  b: c

results in Symfony\Component\Yaml\Exception\ParseException with message You cannot define a sequence item when in a mapping

I believe, that both examples are correct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions