Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28f4c09 commit f48f19dCopy full SHA for f48f19d
src/Symfony/Bundle/FrameworkBundle/Command/AboutCommand.php
@@ -130,9 +130,9 @@ private static function isExpired(string $date): bool
130
private static function getDotenvVars(): array
131
{
132
$vars = [];
133
- foreach (explode(',', getenv('SYMFONY_DOTENV_VARS')) as $name) {
134
- if ('' !== $name && false !== $value = getenv($name)) {
135
- $vars[$name] = $value;
+ foreach (explode(',', $_SERVER['SYMFONY_DOTENV_VARS'] ?? $_ENV['SYMFONY_DOTENV_VARS'] ?? '') as $name) {
+ if ('' !== $name && isset($_ENV[$name])) {
+ $vars[$name] = $_ENV[$name];
136
}
137
138
0 commit comments