diff --git a/src/Command/DumpEnvCommand.php b/src/Command/DumpEnvCommand.php index 5595aa4ea..02edaefe1 100644 --- a/src/Command/DumpEnvCommand.php +++ b/src/Command/DumpEnvCommand.php @@ -84,7 +84,11 @@ private function loadEnv(string $path, string $env): array putenv('SYMFONY_DOTENV_VARS='.$_SERVER['SYMFONY_DOTENV_VARS']); try { - $dotenv = new Dotenv(false); + if (method_exists(Dotenv::class, 'usePutenv')) { + $dotenv = new Dotenv(); + } else { + $dotenv = new Dotenv(false); + } if (method_exists($dotenv, 'loadEnv')) { $dotenv->loadEnv($path);
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: