Skip to content

Symfony Config Component does not recognize environment variables #28599

Closed
@alex-bacart

Description

@alex-bacart

Symfony version(s) affected: 4.1

Description
Following the documentation on a fresh installed Symfony 4.1.
https://symfony.com/doc/current/configuration/external_parameters.html#environment-variable-processors

Copying and pasting these configuration in config/packages/framework.yaml
image

Getting an exception:

In BaseNode.php line 529:
Invalid type for path "framework.trusted_hosts.0". Expected one of "bool", "int", "float", "string", but got "array".

My environment does not contain a TRUSTED_PROXIES variable.
It looks like a bug with a JSON environment variables passed to configuration. If it's by design than it's a documentation bug.

Maybe related to #28137 and #23888

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