Skip to content

Commit

Permalink
Merge pull request #196 from loic425/fix-deprecation-notice
Browse files Browse the repository at this point in the history
Fix deprecation notice from Dotenv
  • Loading branch information
loic425 committed Jun 20, 2019
2 parents 447f855 + f47a485 commit 8d1de05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
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(true))->loadEnv(dirname(__DIR__).'/.env');
}

$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? null) ?: 'dev';
Expand Down

0 comments on commit 8d1de05

Please sign in to comment.