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 84e9722 + 9bd8ba4 commit 8209084Copy full SHA for 8209084
Command/AboutCommand.php
@@ -131,9 +131,9 @@ private static function isExpired(string $date): bool
131
private static function getDotenvVars(): array
132
{
133
$vars = [];
134
- foreach (explode(',', getenv('SYMFONY_DOTENV_VARS')) as $name) {
135
- if ('' !== $name && false !== $value = getenv($name)) {
136
- $vars[$name] = $value;
+ foreach (explode(',', $_SERVER['SYMFONY_DOTENV_VARS'] ?? $_ENV['SYMFONY_DOTENV_VARS'] ?? '') as $name) {
+ if ('' !== $name && isset($_ENV[$name])) {
+ $vars[$name] = $_ENV[$name];
137
}
138
139
0 commit comments