symfony / symfony-docs

The Symfony documentation
https://symfony.com/doc
Other
2.18k stars 5.12k forks source link

[BUG] Yaml Component 5.2 reports parse errors #14636

Closed BeyerJC closed 3 years ago

BeyerJC commented 3 years ago

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.

BeyerJC commented 3 years ago

Wrong project, sorry !