Skip to content

Commit

Permalink
Merge pull request #412 from roots/update-phpdotenv
Browse files Browse the repository at this point in the history
Update vlucas/phpdotenv to ^3
  • Loading branch information
retlehs authored Feb 7, 2019
2 parents 718f5f7 + 9eb0f9e commit ad849ef
Show file tree
Hide file tree
Showing 3 changed files with 129 additions and 28 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"require": {
"php": ">=7.1",
"composer/installers": "^1.4",
"vlucas/phpdotenv": "^2.0.1",
"vlucas/phpdotenv": "^3.0.0",
"oscarotero/env": "^1.1.0",
"roots/wordpress": "5.0.3",
"roots/wp-config": "1.0.0",
Expand Down
153 changes: 127 additions & 26 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 = new Dotenv\Dotenv($root_dir);
$dotenv = Dotenv\Dotenv::create($root_dir);
if (file_exists($root_dir . '/.env')) {
$dotenv->load();
$dotenv->required(['WP_HOME', 'WP_SITEURL']);
Expand Down

0 comments on commit ad849ef

Please sign in to comment.