From 865a0cf178cf27e940ece29f3f5c925ed626bf68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD=20=D0=97=D0=BE=D1=80=D0=B8=D0=BD?= Date: Sat, 29 Jul 2023 13:30:04 +0500 Subject: [PATCH] Fix --- src/WebAuthn/Attestation/AttestationObject.php | 4 ++-- src/WebAuthn/Attestation/Format/FormatBase.php | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/WebAuthn/Attestation/AttestationObject.php b/src/WebAuthn/Attestation/AttestationObject.php index bed9841..ebd844e 100644 --- a/src/WebAuthn/Attestation/AttestationObject.php +++ b/src/WebAuthn/Attestation/AttestationObject.php @@ -188,9 +188,9 @@ public function getCertificateSubject(): string /** * Возвращает ключ сертификата в формате PEM - * @return string + * @return string|null */ - public function getCertificatePem(): string + public function getCertificatePem(): ?string { return $this->_attestationFormat->getCertificatePem(); } diff --git a/src/WebAuthn/Attestation/Format/FormatBase.php b/src/WebAuthn/Attestation/Format/FormatBase.php index e84a69d..e54dac3 100644 --- a/src/WebAuthn/Attestation/Format/FormatBase.php +++ b/src/WebAuthn/Attestation/Format/FormatBase.php @@ -100,7 +100,7 @@ public function getCertificateChain(): ?string /** * returns the key X.509 certificate in PEM format - * @return string + * @return string|null */ public function getCertificatePem(): ?string { @@ -112,7 +112,6 @@ public function getCertificatePem(): ?string * checks validity of the signature * @param string $clientDataHash * @return bool - * @throws Exception */ public function validateAttestation(string $clientDataHash): bool {