Skip to content

[BUG] Symfony Yaml 5.2 component reports errors on valid yaml  #39229

Closed
@BeyerJC

Description

@BeyerJC

Symfony version(s) affected: 5,2

Description
I just updated a project to 5.2 and encountered problems with my yaml configuration files.

Configs that did work before are not failing with an yaml parse error.

    App\SwaggerUi\UuidTypeFactory:
        decorates: 'api_platform.json_schema.type_factory'
        arguments: [ '@App\SwaggerUi\UuidTypeFactory.inner' ]  

for example now has an error

!!  In Inline.php line 94:
!!                                                                                                                  
!!    Unexpected characters near " ]" at line 74 (near "arguments: [ '@App\SwaggerUi\UuidTypeFactory.inner' ]  ").    

Also

elao_enum:
    doctrine:
        types: {}           <--- This one          

Now reports invalid yaml.

How to reproduce
Add one of the configurations above in the config.

Possible Solution
Not yet.

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