Skip to content

Can't parse YAML that the parser used to be able to parse #25786

Closed
@alexpott

Description

@alexpott
Q A
Bug report? yes
Feature request? no
BC Break report? yes
RFC? no
Symfony version first occurred in 3.3

Symfony 3.2 is able to parse yaml that looks like this:

factory.keyvalue.expirable: 
  {}
  # Default key/value expirable storage service to use.
  # @default keyvalue.database.expirable
  # default: keyvalue.database.expirable

Symfony 3.3+ it results in Uncaught Symfony\Component\Yaml\Exception\ParseException: Unable to parse at line 2 (near "{}")

Using git bisect shows that this break was introduced by #25241

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