From 32f622f5ab9333438fefedab77fb431aac5dfa23 Mon Sep 17 00:00:00 2001 From: Erik Gaal Date: Fri, 11 Feb 2022 18:56:07 +0100 Subject: [PATCH] Upgrade vlucas/phpdotenv to ^5.0 `Dotenv::create($paths)` was the syntax for releases before v4 --- composer.json | 2 +- tests/TestCase.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index b10f2d16..99eda06b 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "stancl/virtualcolumn": "^1.0" }, "require-dev": { - "vlucas/phpdotenv": "^3.3|^4.0|^5.0", + "vlucas/phpdotenv": "^5.0", "laravel/framework": "^6.0|^7.0|^8.0", "orchestra/testbench-browser-kit": "^4.0|^5.0|^6.0", "league/flysystem-aws-s3-v3": "~1.0", diff --git a/tests/TestCase.php b/tests/TestCase.php index bbc42489..bfa526e3 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -48,7 +48,7 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase protected function getEnvironmentSetUp($app) { if (file_exists(__DIR__ . '/../.env')) { - \Dotenv\Dotenv::create(__DIR__ . '/..')->load(); + \Dotenv\Dotenv::createImmutable(__DIR__ . '/..')->load(); } $app['config']->set([