Skip to content

Commit 8209084

Browse files
Merge branch '4.3' into 4.4
* 4.3: [4.3] Cleanup tests Cleanup tests [Finder] Prevent unintentional file locks in Windows [FrameworkBundle] Fix about command not showing .env vars [DomCrawler] Fix FileFormField PHPDoc [Mailer] Remove the default dispatcher in AbstractTransport Fix #33395 PHP 5.3 compatibility
2 parents 84e9722 + 9bd8ba4 commit 8209084

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Command/AboutCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ private static function isExpired(string $date): bool
131131
private static function getDotenvVars(): array
132132
{
133133
$vars = [];
134-
foreach (explode(',', getenv('SYMFONY_DOTENV_VARS')) as $name) {
135-
if ('' !== $name && false !== $value = getenv($name)) {
136-
$vars[$name] = $value;
134+
foreach (explode(',', $_SERVER['SYMFONY_DOTENV_VARS'] ?? $_ENV['SYMFONY_DOTENV_VARS'] ?? '') as $name) {
135+
if ('' !== $name && isset($_ENV[$name])) {
136+
$vars[$name] = $_ENV[$name];
137137
}
138138
}
139139

0 commit comments

Comments
 (0)