aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Authentication/WebAuthn/CredentialRepository.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Authentication/WebAuthn/CredentialRepository.php')
-rw-r--r--lib/private/Authentication/WebAuthn/CredentialRepository.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/private/Authentication/WebAuthn/CredentialRepository.php b/lib/private/Authentication/WebAuthn/CredentialRepository.php
index 203f2ef9020..a9389cb182f 100644
--- a/lib/private/Authentication/WebAuthn/CredentialRepository.php
+++ b/lib/private/Authentication/WebAuthn/CredentialRepository.php
@@ -16,11 +16,10 @@ use Webauthn\PublicKeyCredentialSourceRepository;
use Webauthn\PublicKeyCredentialUserEntity;
class CredentialRepository implements PublicKeyCredentialSourceRepository {
- /** @var PublicKeyCredentialMapper */
- private $credentialMapper;
- public function __construct(PublicKeyCredentialMapper $credentialMapper) {
- $this->credentialMapper = $credentialMapper;
+ public function __construct(
+ private PublicKeyCredentialMapper $credentialMapper,
+ ) {
}
public function findOneByCredentialId(string $publicKeyCredentialId): ?PublicKeyCredentialSource {
@@ -28,7 +27,7 @@ class CredentialRepository implements PublicKeyCredentialSourceRepository {
$entity = $this->credentialMapper->findOneByCredentialId($publicKeyCredentialId);
return $entity->toPublicKeyCredentialSource();
} catch (IMapperException $e) {
- return null;
+ return null;
}
}