Skip to content

Commit

Permalink
Update vlucas/phpdotenv to ^3
Browse files Browse the repository at this point in the history
Resolves #411
  • Loading branch information
knowler committed Jan 28, 2019
1 parent e0450b7 commit 9eb0f9e
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(['DB_NAME', 'DB_USER', 'DB_PASSWORD', 'WP_HOME', 'WP_SITEURL']);
Expand Down

0 comments on commit 9eb0f9e

Please sign in to comment.