diff --git a/composer.json b/composer.json index 8726b1d000..17380d8a6a 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "drupal/console": "^1.0.2", "drupal/core": "^8.6.0", "drush/drush": "^9.0.0", - "vlucas/phpdotenv": "^2.4", + "vlucas/phpdotenv": "^3.3", "webflo/drupal-finder": "^1.0.0", "webmozart/path-util": "^2.3", "zaporylie/composer-drupal-optimizations": "^1.0" diff --git a/load.environment.php b/load.environment.php index 769343fd6f..9b66f4374c 100644 --- a/load.environment.php +++ b/load.environment.php @@ -11,7 +11,7 @@ /** * Load any .env file. See /.env.example. */ -$dotenv = new Dotenv(__DIR__); +$dotenv = Dotenv::create(__DIR__); try { $dotenv->load(); }