From e9da2d3b407628b3b7623afef8933a7f1c9df147 Mon Sep 17 00:00:00 2001 From: Nikita Dudarev Date: Mon, 23 Mar 2020 17:32:44 +0200 Subject: [PATCH] updating dotenv library from 3v to 4v --- composer.json | 2 +- environments/dotenv.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 0a4e0db..5ba7233 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,7 @@ "require": { "php": ">=7.0", "composer/installers": "^1.4", - "vlucas/phpdotenv": "^3.3.2", + "vlucas/phpdotenv": "^4.1.2", "johnpbloch/wordpress": "^5.0.3", "justcoded/wordpress-composer-scripts": "~1.2", "wpackagist-theme/twentyseventeen": "*", diff --git a/environments/dotenv.php b/environments/dotenv.php index 27067d4..715a0d6 100644 --- a/environments/dotenv.php +++ b/environments/dotenv.php @@ -13,7 +13,7 @@ function dotenv( $config = null ) { static $dotenv; if ( ! is_null( $config ) ) { - $dotenv = Dotenv\Dotenv::create( $config ); + $dotenv = Dotenv\Dotenv::createImmutable( $config ); } if ( ! $dotenv ) {