From c72b9c2e2b638225e45ee28a5004779cca7a866f Mon Sep 17 00:00:00 2001 From: team2 Date: Sat, 25 Apr 2026 23:40:06 +0200 Subject: [PATCH] central config part 1 --- RETRIEX_VOCABULARY_HOTFIX_README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 RETRIEX_VOCABULARY_HOTFIX_README.md diff --git a/RETRIEX_VOCABULARY_HOTFIX_README.md b/RETRIEX_VOCABULARY_HOTFIX_README.md new file mode 100644 index 0000000..47a8621 --- /dev/null +++ b/RETRIEX_VOCABULARY_HOTFIX_README.md @@ -0,0 +1,19 @@ +# RetrieX Vocabulary Hotfix + +This patch fixes a runtime error introduced by the vocabulary centralization patch. + +## Fixed error + +`array_key_exists(): Argument #2 ($array) must be of type array, App\Config\DomainVocabularyConfig given` + +## Root cause + +`NdjsonHybridRetrieverConfig::raw()` still checked `$this->vocabulary` as if it were an array. After the vocabulary refactor, `$this->vocabulary` is a `DomainVocabularyConfig` object. Effective vocabulary fallback is already resolved before `raw()` is called, so this second `array_key_exists()` check was invalid and unnecessary. + +## Changed file + +- `src/Config/NdjsonHybridRetrieverConfig.php` + +## After applying + +Clear Symfony cache before testing.