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.
1 parent 3309f27 commit 351d273Copy full SHA for 351d273
Dotenv.php
@@ -402,7 +402,12 @@ private function resolveCommands($value)
402
}
403
404
$process = method_exists(Process::class, 'fromShellCommandline') ? Process::fromShellCommandline('echo '.$matches[0]) : new Process('echo '.$matches[0]);
405
- $process->inheritEnvironmentVariables(true);
+
406
+ if (!method_exists(Process::class, 'fromShellCommandline')) {
407
+ // Symfony 3.4 does not inherit env vars by default:
408
+ $process->inheritEnvironmentVariables();
409
+ }
410
411
$process->setEnv($this->values);
412
try {
413
$process->mustRun();
0 commit comments