Thanks to visit codestin.com
Credit goes to github.com

Skip to content

bin/console config:dump-reference dumps invalid yaml #54154

Closed
@tacman

Description

@tacman

Symfony version(s) affected

7.0.4

Description

The following yaml, created from config:dump-reference, is invalid, because it has ~ and a list

        # Specifies the default link handling for the web app.
        handle_links:         ~

            # Examples:
            - auto
            - preferred
            - not-preferred

How to reproduce

symfony new container-bug --webapp && cd container-bug
composer install
composer require spomky-labs/pwa-bundle
bin/console config:dump-reference  pwa > pwa.yaml
bin/console lint:yaml pwa.yaml
No security vulnerability advisories found
Using version ^1.0 for spomky-labs/phpwa
  ERROR  in pwa.yaml
  >> Unable to parse at line 8 (near "    - 1").

[WARNING] 0 YAML files have valid syntax and 1 contain errors.

Possible Solution

No response

Additional Context

No response

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