diff --git a/phpstan.neon b/phpstan.neon
index 5d6753b659d2da113d189102da8ef3991340dea7..4678da9ef2f404b338fc20bae3f205c44be31e35 100644
--- a/phpstan.neon
+++ b/phpstan.neon
@@ -7,5 +7,3 @@ parameters:
 	  - '#no value type specified in iterable type array#'
 	  - '#no value type specified in iterable type Drupal\\Core\\Field\\FieldItemListInterface#'
 	  - '#has parameter \$items with generic interface Drupal\\Core\\Field\\FieldItemListInterface but does not specify its types#'
-	  # Drupal does not know about Hooks. Remove when Drupal 11.1 is the min version supported.
-	  - '#Attribute class#'
diff --git a/src/Entity/PublicKeyCredentialSource.php b/src/Entity/PublicKeyCredentialSource.php
index b95c900fce0d177c20b7cd62590ded9be85e863d..f7453036bbdf398a5eb8cf3aaab130edf78c8f3f 100644
--- a/src/Entity/PublicKeyCredentialSource.php
+++ b/src/Entity/PublicKeyCredentialSource.php
@@ -81,7 +81,7 @@ final class PublicKeyCredentialSource extends ContentEntityBase implements Publi
     }
     $uuid = \Drupal::service('uuid');
     /** @var \Drupal\webauthn_framework\WebauthnInterface $webauthn_framework */
-    $webauthn_framework = \Drupal::service('webauthn.framework');
+    $webauthn_framework = \Drupal::service('webauthn_framework.webauthn');
     $entity_values = [
       'uuid' => $uuid->generate(),
       'uid' => \Drupal::currentUser()->id(),