Corrected a few lines of code in regards to missing variable definitions

This commit is contained in:
Netkas 2023-08-12 02:20:40 -04:00
parent 8835ad9702
commit b26d818d6b
No known key found for this signature in database
GPG key ID: 5DAF58535614062B
2 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -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);