From 9d862a856cae7478ba675fdbeae8d71bb8b256f7 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Mon, 26 Oct 2026 13:10:14 +0100 Subject: [PATCH] [BUGFIX] Initialize test variables before appending to them Avoid using undefined variables in the canSearchInCollections() functional test to satisfy the UndefinedVariable code pattern. Assisted-by: OpenCode / qwen3.8-27b-thinking (Alibaba Cloud) Signed-off-by: Stefan Weil --- Tests/Functional/Common/SolrIndexingTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tests/Functional/Common/SolrIndexingTest.php b/Tests/Functional/Common/SolrIndexingTest.php index 002e75f122..07d092d4fb 100644 --- a/Tests/Functional/Common/SolrIndexingTest.php +++ b/Tests/Functional/Common/SolrIndexingTest.php @@ -137,7 +137,9 @@ public function canSearchInCollections() $collections = $this->collectionRepository->findCollectionsBySettings([ 'index_name' => ['Musik', 'Projekt: Dresdner Hefte'], ]); + $music = []; $music[] = $collections[0]; + $dresdnerHefte = []; $dresdnerHefte[] = $collections[1]; $settings = [