mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-20 17:15:51 +02:00
Fixed deprecation warning from DotEnv component.
This commit is contained in:
parent
a0c3410db6
commit
0663a00df8
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ if (is_array($env = @include dirname(__DIR__).'/.env.local.php')) {
|
|||
throw new RuntimeException('Please run "composer require symfony/dotenv" to load the ".env" files configuring the application.');
|
||||
} else {
|
||||
// load all the .env files
|
||||
(new Dotenv())->loadEnv(dirname(__DIR__).'/.env');
|
||||
(new Dotenv(false))->loadEnv(dirname(__DIR__).'/.env');
|
||||
}
|
||||
|
||||
$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? null) ?: 'dev';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue