Fix loading of environment variable in bootstrap process

This commit is contained in:
Julien Fastré 2024-04-16 14:41:29 +02:00
parent a2f1e20ddf
commit 5c3585a1ed
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -23,7 +23,7 @@ if (is_array($env = @include dirname(__DIR__).'/.env.local.php') && (!isset($env
(new Dotenv(false))->populate($env);
} else {
// load all the .env files
(new Dotenv(false))->loadEnv(dirname(__DIR__).'/../../.env.test');
(new Dotenv(false))->loadEnv(dirname(__DIR__).'/../../.env');
}
$_SERVER += $_ENV;