Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Symfony Config Component does not recognize environment variables #28599

Copy link
Copy link
Closed
@alex-bacart

Description

@alex-bacart
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.