diff --git a/config/bootstrap.php b/config/bootstrap.php index 1cf56d27..e00c6e8c 100644 --- a/config/bootstrap.php +++ b/config/bootstrap.php @@ -33,7 +33,7 @@ if (is_array($env = @include dirname(__DIR__).'/.env.local.php')) { throw new RuntimeException('Please run "composer require symfony/dotenv" to load the ".env" files configuring the application.'); } else { // load all the .env files - (new Dotenv())->loadEnv(dirname(__DIR__).'/.env'); + (new Dotenv(false))->loadEnv(dirname(__DIR__).'/.env'); } $_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? null) ?: 'dev';