From 1ba26bf6e0b5bc0a1a072f924ba161cfbc4d2c13 Mon Sep 17 00:00:00 2001
From: "Eirik S. Morland" <eirik@morland.no>
Date: Fri, 28 Feb 2025 13:14:57 +0100
Subject: [PATCH 1/2] In a MR

---
 src/Event/BeforeSearchEvent.php   | 2 +-
 src/Event/DictionaryEvent.php     | 2 +-
 tests/src/Functional/LoadTest.php | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/Event/BeforeSearchEvent.php b/src/Event/BeforeSearchEvent.php
index 0b63d08..7e48e1c 100644
--- a/src/Event/BeforeSearchEvent.php
+++ b/src/Event/BeforeSearchEvent.php
@@ -2,7 +2,7 @@
 
 namespace Drupal\search_api_redisearch\Event;
 
-use Symfony\Component\EventDispatcher\Event;
+use Symfony\Contracts\EventDispatcher\Event;
 use FKRediSearch\Query\QueryBuilder;
 
 /**
diff --git a/src/Event/DictionaryEvent.php b/src/Event/DictionaryEvent.php
index 3df0176..bea8765 100644
--- a/src/Event/DictionaryEvent.php
+++ b/src/Event/DictionaryEvent.php
@@ -2,7 +2,7 @@
 
 namespace Drupal\search_api_redisearch\Event;
 
-use Symfony\Component\EventDispatcher\Event;
+use Symfony\Contracts\EventDispatcher\Event;
 
 /**
  * The dictionary event class.
diff --git a/tests/src/Functional/LoadTest.php b/tests/src/Functional/LoadTest.php
index 8a8645f..0994028 100644
--- a/tests/src/Functional/LoadTest.php
+++ b/tests/src/Functional/LoadTest.php
@@ -17,7 +17,7 @@ class LoadTest extends BrowserTestBase {
    *
    * @var array
    */
-  public static $modules = ['search_api_redisearch'];
+  protected static $modules = ['search_api_redisearch'];
 
   /**
    * A user with permission to administer site configuration.
@@ -29,7 +29,7 @@ class LoadTest extends BrowserTestBase {
   /**
    * {@inheritdoc}
    */
-  protected function setUp() {
+  protected function setUp(): void {
     parent::setUp();
     $this->user = $this->drupalCreateUser(['administer site configuration']);
     $this->drupalLogin($this->user);
-- 
GitLab


From 035a1fe891085855d0af1bb0564849a652981886 Mon Sep 17 00:00:00 2001
From: "Eirik S. Morland" <eirik@morland.no>
Date: Fri, 28 Feb 2025 13:21:23 +0100
Subject: [PATCH 2/2] d10 as well

---
 search_api_redisearch.info.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/search_api_redisearch.info.yml b/search_api_redisearch.info.yml
index fc7d35c..cdef5cf 100644
--- a/search_api_redisearch.info.yml
+++ b/search_api_redisearch.info.yml
@@ -1,7 +1,7 @@
 name: 'RediSearch'
 type: module
 description: 'Integrates RediSearch with Drupal Search API'
-core_version_requirement: ^8.8 || ^9
+core_version_requirement: ^8.8 || ^9 || ^10
 package: 'Search'
 dependencies:
   - search_api
-- 
GitLab