From 0663a00df8a6423611285b0e4a83c758a438bb31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Fri, 8 Nov 2019 22:37:16 +0100 Subject: [PATCH] Fixed deprecation warning from DotEnv component. --- config/bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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';