8000 [DotEnv] Failed to parse variables from $_ENV · Issue #23423 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[DotEnv] Failed to parse variables from $_ENV #23423
Closed
@brieucthomas

Description

@brieucthomas
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 3.3.3

Hello,

I think there is an issue with the DotEnv component.

use Symfony\Component\Dotenv\Dotenv;

$_ENV['LOCAL'] = 'local';

$values = (new Dotenv())->parse('FOO=$LOCAL'));

Expected:

$values = ['FOO' => 'local'];

Actual:

$values = ['FOO' => '1'];

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

      0