Skip to content

Commit

Permalink
Check default path is set, fixes #150 (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b authored Jan 27, 2021
1 parent c9116de commit ae67229
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/db-migrate
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ if(!is_file($defaultPath)) {

$config = ConfigFactory::createForProject($repoBasePath);

if($defaultPath) {
$default = ConfigFactory::createFromPathName($defaultPath);
}
$default = $defaultPath
? ConfigFactory::createFromPathName($defaultPath)
: null;

if($default) {
$config->merge($default);
Expand Down

0 comments on commit ae67229

Please sign in to comment.