central config part 1

This commit is contained in:
team2
2026-04-25 23:40:06 +02:00
parent f42022e5f7
commit c72b9c2e2b

View File

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