Skip to content

[Yaml] valid comment crashes #38223

Closed
Closed
@ro0NL

Description

@ro0NL

Symfony version(s) affected: 5.1

Given e.g.

foo:
    bar:
        baz:
            access_key: 'literal'#'%env(ACCESS_KEY)%'

it crashes with Unexpected characters near "#'%env(ACCESS_KEY)%'" (note the quotes around literal)

but is succesfully parses at http://www.yamllint.com/

adding a space before # solves it in Symfony, but i was too lazy :)

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