diff --git a/src/webauthn/src/PublicKeyCredentialCreationOptions.php b/src/webauthn/src/PublicKeyCredentialCreationOptions.php index a624dd3d..d9dfba09 100644 --- a/src/webauthn/src/PublicKeyCredentialCreationOptions.php +++ b/src/webauthn/src/PublicKeyCredentialCreationOptions.php @@ -46,7 +46,7 @@ public function __construct( public readonly PublicKeyCredentialUserEntity $user, string $challenge, /** @readonly */ - public array $pubKeyCredParams, + public array $pubKeyCredParams = [], /** @readonly */ public null|AuthenticatorSelectionCriteria $authenticatorSelection = null, /** @readonly */ @@ -83,7 +83,7 @@ public static function create( PublicKeyCredentialRpEntity $rp, PublicKeyCredentialUserEntity $user, string $challenge, - array $pubKeyCredParams, + array $pubKeyCredParams = [], /** @readonly */ null|AuthenticatorSelectionCriteria $authenticatorSelection = null, /** @readonly */