You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've added vlucas/phpdotenv v3.3.3 to my composer.json, but then it shows a fatal error:
Uncaught TypeError: Argument 1 passed to Dotenv\Dotenv::__construct() must be an instance of Dotenv\Loader, string given, called in ...\site\vendor\hiqdev\composer-config-plugin\src\readers\EnvReader.php on line 28 and defined in ...\site\vendor\vlucas\phpdotenv\src\Dotenv.php:31
In their README, they have a section called Upgrading from v2 that says :
Consequently, you will need to replace any occurrences of new Dotenv(...) with Dotenv::create(...), since our new native constructor takes a Loader instance now, so that it can be truly customized if required.
I downgraded to v2.6.1 by adding this: composer require vlucas/phpdotenv:^2.0 and now it's working.
This should be specified in the docs maybe?
The text was updated successfully, but these errors were encountered:
I've added vlucas/phpdotenv v3.3.3 to my composer.json, but then it shows a fatal error:
In their README, they have a section called Upgrading from v2 that says :
I downgraded to v2.6.1 by adding this:
composer require vlucas/phpdotenv:^2.0
and now it's working.This should be specified in the docs maybe?
The text was updated successfully, but these errors were encountered: