Skip to content

[Yaml] Bug: Escaping quotes in strings throws Symfony\Component\Yaml\Exception\ParseException #39265

Closed
@Jeroeny

Description

@Jeroeny

Symfony version(s) affected: 5.1.9, 5.2.0 and possibly more

Description
When a config file in a symfony app (eg. config/services.yaml contains the following yaml, it will throw an exception:

    App\Example:
        arguments:
            $foo: 'bla\'

See the reproducer for more.

How to reproduce

https://github.com/Jeroeny/reproduce/tree/yaml

Originally thought to be related to #39229, but it's supposedly a different issue. The patch for that issue was also tested, but did not fix the bug.

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