Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
localzet committed Jul 29, 2023
1 parent d72da56 commit 865a0cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/WebAuthn/Attestation/AttestationObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
3 changes: 1 addition & 2 deletions src/WebAuthn/Attestation/Format/FormatBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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
{
Expand Down

0 comments on commit 865a0cf

Please sign in to comment.