fix: case-insensitive config from env, fix #2935 (#2973)

* refactor

* fix: case-sensitive config from env, fix #2935

* lowercase all config section and keys

* test: add test for case-insensitivity
This commit is contained in:
Dag 2022-08-23 21:19:53 +02:00 committed by GitHub
parent edbafc6144
commit 5165ea265d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 78 additions and 161 deletions

View file

@ -22,7 +22,7 @@ class SQLiteCache implements CacheInterface
$section = 'SQLiteCache';
$file = Configuration::getConfig($section, 'file');
if (empty($file)) {
if (!$file) {
throw new \Exception(sprintf('Configuration for %s missing.', $section));
}