diff --git a/configuration.rst b/configuration.rst index 947a3dc88e2..87ba50a2c9b 100644 --- a/configuration.rst +++ b/configuration.rst @@ -897,7 +897,7 @@ If you need to override an environment variable defined by the system, use the use Symfony\Component\Dotenv\Dotenv; $dotenv = new Dotenv(); - $dotenv->loadEnv(__DIR__.'/.env', null, 'dev', ['test'], true); + $dotenv->loadEnv(__DIR__.'/.env', overrideExistingVars: true); // ...