Skip to content

Commit

Permalink
Merge pull request #36 from leafling/patch-1
Browse files Browse the repository at this point in the history
add check to make sure ConfigFilePath is readable
  • Loading branch information
freekmurze authored Feb 13, 2022
2 parents 9bcfc48 + 6673f11 commit 772a1ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Config/DefaultConfigFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ public function getConfigFilePath(): string
return '';
}

return "{$homeDirectory}/.ignition.json";
$filepath = "{$homeDirectory}/.ignition.json";

return @is_readable($filepath) ? $filepath : '';
}

protected function findHomeDirectory(): ?string
Expand Down

0 comments on commit 772a1ba

Please sign in to comment.