diff --git a/perimeter.info.yml b/perimeter.info.yml
index bfc9a1a..d161943 100644
--- a/perimeter.info.yml
+++ b/perimeter.info.yml
@@ -1,8 +1,7 @@
 type: module
 name: Drupal Perimeter Defence
 description: Immediately ban hackers when they try to scan the site.
-core: 8.x
-core_version_requirement: ^8 || ^9
+core_version_requirement: ^8 || ^9 || ^10
 dependencies:
   - drupal:ban
 configure: perimeter.settings
diff --git a/src/EventSubscriber/PerimeterSubscriber.php b/src/EventSubscriber/PerimeterSubscriber.php
index 70833ab..6840c6d 100644
--- a/src/EventSubscriber/PerimeterSubscriber.php
+++ b/src/EventSubscriber/PerimeterSubscriber.php
@@ -39,7 +39,7 @@ class PerimeterSubscriber implements EventSubscriberInterface {
   /**
    * On page not found events, ban the IP if the request is suspicious.
    */
-  public function handleBannedUrls(Event $event) {
+  public function handleBannedUrls(\Symfony\Contracts\EventDispatcher\Event $event) {
     $exception = $event->getException();
     if ($exception instanceof NotFoundHttpException) {
       $request_path = $event->getRequest()->getPathInfo();
