diff --git a/CHANGELOG.md b/CHANGELOG.md index 918decb..2051963 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 This update introduces minor improvements +### Fixed + - Corrected a few lines of code in regards to missing variable definitions + ## [1.0.3] - 2023-07-13 diff --git a/src/ConfigLib/Configuration.php b/src/ConfigLib/Configuration.php index 10f65dd..cdf7f47 100644 --- a/src/ConfigLib/Configuration.php +++ b/src/ConfigLib/Configuration.php @@ -61,7 +61,7 @@ } else { - Log::warning('net.nosial.configlib', sprintf('Environment variable "%s" points to a non-existent file, resorting to default/builtin configuration', $environment_config)); + Log::warning('net.nosial.configlib', sprintf('Environment variable "%s" points to a non-existent file, resorting to default/builtin configuration', $env)); } } @@ -336,7 +336,7 @@ if(!$fs->exists($this->path)) { - throw new RuntimeException(sprintf('Unable to import configuration file "%s" from environment, file does not exist', $path)); + throw new RuntimeException(sprintf('Unable to import configuration file "%s" from environment, file does not exist', $this->path)); } $yaml = file_get_contents($this->path);