Skip to content

Commit

Permalink
Merge pull request #1 from LGouttefange/bugfix/error_on_no_config
Browse files Browse the repository at this point in the history
bugfix: Fixed module throwing error when no config is provided to module
  • Loading branch information
mcustiel authored Oct 6, 2020
2 parents 0be10e7 + ce41347 commit 537c4cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Module/Phiremock.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ private function createFactory(): Factory

private function setExpectationsPathConfiguration(): void
{
$configuredPath = $this->config[self::EXPECTATIONS_PATH_CONFIG];
$configuredPath = $this->config[self::EXPECTATIONS_PATH_CONFIG] ?? null;
if (empty($configuredPath)) {
$defaultPath = codecept_data_dir(self::EXPECTATIONS_PATH);
if (!is_dir($defaultPath)) {
Expand Down

0 comments on commit 537c4cd

Please sign in to comment.