diff --git a/composer.json b/composer.json
index f4daf76..00394f9 100644
--- a/composer.json
+++ b/composer.json
@@ -11,6 +11,6 @@
     "source": "http://cgit.drupalcode.org/flat_comments"
   },
   "require": {
-    "drupal/core": "^8 || ^9"
+    "drupal/core": "^8 || ^9 || ^10"
   }
 }
diff --git a/flat_comments.info.yml b/flat_comments.info.yml
index 8c16dd3..4900b3a 100644
--- a/flat_comments.info.yml
+++ b/flat_comments.info.yml
@@ -1,7 +1,6 @@
 name: Flat comments
 type: module
 description: Make all comments replies to the main post, regardless of the reply link used.
-core: 8.x
-core_version_requirement: ^8 || ^9
+core_version_requirement: ^8 || ^9 || ^10
 dependencies:
   - drupal:comment
diff --git a/tests/src/Functional/FlatCommentsReplyLinkTest.php b/tests/src/Functional/FlatCommentsReplyLinkTest.php
index 39ff501..bc859f5 100644
--- a/tests/src/Functional/FlatCommentsReplyLinkTest.php
+++ b/tests/src/Functional/FlatCommentsReplyLinkTest.php
@@ -69,7 +69,7 @@ class FlatCommentsReplyLinkTest extends CommentTestBase {
       $this->commentExists($comment1),
       'Comment found.'
     );
-    $this->assertNoLink('Reply');
+    $this->assertSession()->linkNotExists('Reply');
     $this->drupalLogout();
 
   }
diff --git a/tests/src/Kernel/FlatCommentsPidTest.php b/tests/src/Kernel/FlatCommentsPidTest.php
index a4d5fe3..50854d8 100644
--- a/tests/src/Kernel/FlatCommentsPidTest.php
+++ b/tests/src/Kernel/FlatCommentsPidTest.php
@@ -33,7 +33,7 @@ class FlatCommentsPidTest extends KernelTestBase {
     'user',
   ];
 
-  protected function setUp() {
+  protected function setUp(): void {
     parent::setUp();
     $this->installEntitySchema('comment');
     $this->installSchema('comment', ['comment_entity_statistics']);
