diff --git a/sql_executor.info.yml b/sql_executor.info.yml
index 64e11a5..1f8e2f8 100644
--- a/sql_executor.info.yml
+++ b/sql_executor.info.yml
@@ -1,7 +1,7 @@
 name: 'SQL Executor'
 type: module
 description: 'Run SQL queries from the admin interface, with safe read queries, previews of changes, limits and a query log.'
-core_version_requirement: ^10.3 || ^11
+core_version_requirement: ^11.2 || ^12
 package: Development
 configure: sql_executor.settings
 dependencies:
diff --git a/src/Hook/SqlExecutorHooks.php b/src/Hook/SqlExecutorHooks.php
index 73db174..3ada008 100644
--- a/src/Hook/SqlExecutorHooks.php
+++ b/src/Hook/SqlExecutorHooks.php
@@ -4,6 +4,8 @@ declare(strict_types=1);
 
 namespace Drupal\sql_executor\Hook;
 
+use Drupal\Component\Utility\DeprecationHelper;
+use Drupal\Core\Extension\Requirement\RequirementSeverity;
 use Drupal\Core\Entity\EntityTypeManagerInterface;
 use Drupal\Core\Hook\Attribute\Hook;
 use Drupal\Core\Site\Settings;
@@ -32,7 +34,7 @@ final class SqlExecutorHooks {
   public function runtimeRequirements(): array {
     if (Settings::get('sql_executor_disabled', FALSE)) {
       $value = $this->t('Turned off in settings.php');
-      $severity = REQUIREMENT_OK;
+      $severity = DeprecationHelper::backwardsCompatibleCall(\Drupal::VERSION, '11.2.0', fn() => RequirementSeverity::OK, fn() => REQUIREMENT_OK);
     }
     else {
       $writers = $readers = [];
@@ -48,7 +50,7 @@ final class SqlExecutorHooks {
       $value = QueryRunner::isReadOnly()
         ? $this->t('Enabled, read queries only')
         : $this->t('Enabled, data can be changed by: @roles', ['@roles' => implode(', ', $writers) ?: $this->t('nobody')]);
-      $severity = QueryRunner::isReadOnly() ? REQUIREMENT_INFO : REQUIREMENT_WARNING;
+      $severity = QueryRunner::isReadOnly() ? DeprecationHelper::backwardsCompatibleCall(\Drupal::VERSION, '11.2.0', fn() => RequirementSeverity::Info, fn() => REQUIREMENT_INFO) : DeprecationHelper::backwardsCompatibleCall(\Drupal::VERSION, '11.2.0', fn() => RequirementSeverity::Warning, fn() => REQUIREMENT_WARNING);
     }
     return [
       'sql_executor' => [
diff --git a/tests/src/Functional/SqlExecutorTest.php b/tests/src/Functional/SqlExecutorTest.php
index af1d8ed..3d40dc3 100644
--- a/tests/src/Functional/SqlExecutorTest.php
+++ b/tests/src/Functional/SqlExecutorTest.php
@@ -4,6 +4,7 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\sql_executor\Functional;
 
+use PHPUnit\Framework\Attributes\Group;
 use Drupal\Tests\BrowserTestBase;
 use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 
@@ -13,6 +14,7 @@ use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
  * @group sql_executor
  */
 #[RunTestsInSeparateProcesses]
+#[Group('sql_executor')]
 class SqlExecutorTest extends BrowserTestBase {
 
   /**
diff --git a/tests/src/Kernel/QueryRunnerTest.php b/tests/src/Kernel/QueryRunnerTest.php
index 74275ba..5044ddf 100644
--- a/tests/src/Kernel/QueryRunnerTest.php
+++ b/tests/src/Kernel/QueryRunnerTest.php
@@ -4,6 +4,7 @@ declare(strict_types=1);
 
 namespace Drupal\Tests\sql_executor\Kernel;
 
+use PHPUnit\Framework\Attributes\Group;
 use Drupal\KernelTests\KernelTestBase;
 use Drupal\sql_executor\QueryRunner;
 use Drupal\Tests\user\Traits\UserCreationTrait;
@@ -16,6 +17,7 @@ use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
  * @group sql_executor
  */
 #[RunTestsInSeparateProcesses]
+#[Group('sql_executor')]
 class QueryRunnerTest extends KernelTestBase {
 
   use UserCreationTrait;
