We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f55d090 + 8ca8f49 commit e9ca038Copy full SHA for e9ca038
symfony/framework-bundle/4.2/config/bootstrap.php
@@ -6,7 +6,7 @@
6
7
// Load cached env vars if the .env.local.php file exists
8
// Run "composer dump-env prod" to create it (requires symfony/flex >=1.2)
9
-if (is_array($env = @include dirname(__DIR__).'/.env.local.php') && ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? $env['APP_ENV'] ?? null) === ($env['APP_ENV'] ?? null)) {
+if (is_array($env = @include dirname(__DIR__).'/.env.local.php') && (!isset($env['APP_ENV']) || ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? $env['APP_ENV']) === $env['APP_ENV'])) {
10
foreach ($env as $k => $v) {
11
$_ENV[$k] = $_ENV[$k] ?? (isset($_SERVER[$k]) && 0 !== strpos($k, 'HTTP_') ? $_SERVER[$k] : $v);
12
}
0 commit comments