Skip to content

Commit

Permalink
Fixes Issue laminas#5
Browse files Browse the repository at this point in the history
When searching for the config dir location, isset always returned true for projectDir since it was an empty string by
the constructor defaults, resulting in a file exists on /config/application.config instead of config/application.config

Signed-off-by: Fabian Kreuzkam <[email protected]>
  • Loading branch information
Fabian Kreuzkam committed Aug 2, 2023
1 parent f4c3feb commit 9bdfc7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ConfigDiscoveryTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ private function getApplicationConfig()
return $this->applicationConfig;
}

$configFile = isset($this->projectDir)
$configFile = !empty($this->projectDir)
? sprintf('%s/%s', $this->projectDir, $this->applicationConfigPath)
: $this->applicationConfigPath;

Expand Down

0 comments on commit 9bdfc7a

Please sign in to comment.