Skip to content

Commit

Permalink
Merge pull request #485 from kellymears/vlucas-phpdotenv-4.0.1
Browse files Browse the repository at this point in the history
Upgrade vlucas/phpdotenv to ^4.0.1 & fix breaking change
  • Loading branch information
retlehs authored Feb 18, 2020
2 parents e3f7b41 + 1362046 commit ee49476
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 41 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"require": {
"php": ">=7.1",
"composer/installers": "^1.7",
"vlucas/phpdotenv": "^3.6.0",
"vlucas/phpdotenv": "^4.0.1",
"oscarotero/env": "^1.2.0",
"roots/wordpress": "5.3",
"roots/wp-config": "1.0.0",
Expand Down
83 changes: 44 additions & 39 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config/application.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/**
* Use Dotenv to set required environment variables and load .env file in root
*/
$dotenv = Dotenv\Dotenv::create($root_dir);
$dotenv = Dotenv\Dotenv::createImmutable($root_dir);
if (file_exists($root_dir . '/.env')) {
$dotenv->load();
$dotenv->required(['WP_HOME', 'WP_SITEURL']);
Expand Down

0 comments on commit ee49476

Please sign in to comment.