Skip to content

Commit

Permalink
Merge pull request #3068 from ionutlip/bugfix/3067/ConfigurationValues
Browse files Browse the repository at this point in the history
Fix configuration values not resolving correctly
  • Loading branch information
bobdenotter authored Jan 28, 2022
2 parents 25dccb8 + f2d8006 commit 373101a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Configuration/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ public function get(string $path, $default = null)
if (isset($_ENV[$matches[1]])) {
$value = $_ENV[$matches[1]];
}

if (empty($value) && getenv($matches[1])) {
$value = getenv($matches[1]);
}
}

return $value;
Expand Down

0 comments on commit 373101a

Please sign in to comment.