diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2025-01-21 22:52:12 +0100 |
---|---|---|
committer | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2025-01-22 16:59:12 +0100 |
commit | 3c208955241d2608d50eee355852bf21b7f33933 (patch) | |
tree | 6f9199322b0ee711828e657e58209d6b794e6159 /lib/private/Authentication/WebAuthn/CredentialRepository.php | |
parent | 250549cd031c6b62fd5728c531fed2bdc219e565 (diff) | |
download | nextcloud-server-authPropertyPromotion.tar.gz nextcloud-server-authPropertyPromotion.zip |
refactor(authentication): Use constructor property promotionauthPropertyPromotion
fix: error
Diffstat (limited to 'lib/private/Authentication/WebAuthn/CredentialRepository.php')
-rw-r--r-- | lib/private/Authentication/WebAuthn/CredentialRepository.php | 9 |
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; } } |