Skip to content

Commit 6c1879e

Browse files
committed
feat: implement secure payment confirmation data structures and denormalizers
1 parent 3b5f5ef commit 6c1879e

34 files changed

+4467
-6
lines changed

.ci-tools/phpstan-baseline.neon

Lines changed: 127 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,78 @@ parameters:
771771
count: 1
772772
path: ../src/webauthn/src/AuthenticationExtensions/AuthenticationExtensions.php
773773

774+
-
775+
rawMessage: Cannot access offset 'payeeName' on mixed.
776+
identifier: offsetAccess.nonOffsetAccessible
777+
count: 1
778+
path: ../src/webauthn/src/AuthenticationExtensions/PaymentExtensionOutputChecker.php
779+
780+
-
781+
rawMessage: Cannot access offset 'payeeOrigin' on mixed.
782+
identifier: offsetAccess.nonOffsetAccessible
783+
count: 1
784+
path: ../src/webauthn/src/AuthenticationExtensions/PaymentExtensionOutputChecker.php
785+
786+
-
787+
rawMessage: Cannot access offset 'rpId' on mixed.
788+
identifier: offsetAccess.nonOffsetAccessible
789+
count: 1
790+
path: ../src/webauthn/src/AuthenticationExtensions/PaymentExtensionOutputChecker.php
791+
792+
-
793+
rawMessage: 'Construct empty() is not allowed. Use more strict comparison.'
794+
identifier: empty.notAllowed
795+
count: 2
796+
path: ../src/webauthn/src/AuthenticationExtensions/PaymentExtensionOutputChecker.php
797+
798+
-
799+
rawMessage: 'Method Webauthn\AuthenticationExtensions\PaymentExtensionOutputChecker::validatePayeeName() has parameter $paymentData with no value type specified in iterable type array.'
800+
identifier: missingType.iterableValue
801+
count: 1
802+
path: ../src/webauthn/src/AuthenticationExtensions/PaymentExtensionOutputChecker.php
803+
804+
-
805+
rawMessage: 'Method Webauthn\AuthenticationExtensions\PaymentExtensionOutputChecker::validatePayeeOrigin() has parameter $paymentData with no value type specified in iterable type array.'
806+
identifier: missingType.iterableValue
807+
count: 1
808+
path: ../src/webauthn/src/AuthenticationExtensions/PaymentExtensionOutputChecker.php
809+
810+
-
811+
rawMessage: 'Method Webauthn\AuthenticationExtensions\PaymentExtensionOutputChecker::validateRequiredFields() has parameter $paymentData with no value type specified in iterable type array.'
812+
identifier: missingType.iterableValue
813+
count: 1
814+
path: ../src/webauthn/src/AuthenticationExtensions/PaymentExtensionOutputChecker.php
815+
816+
-
817+
rawMessage: 'Method Webauthn\AuthenticationExtensions\PaymentExtensionOutputChecker::validateRpId() has parameter $paymentData with no value type specified in iterable type array.'
818+
identifier: missingType.iterableValue
819+
count: 1
820+
path: ../src/webauthn/src/AuthenticationExtensions/PaymentExtensionOutputChecker.php
821+
822+
-
823+
rawMessage: 'Part $actualPayeeName (mixed) of encapsed string cannot be cast to string.'
824+
identifier: encapsedStringPart.nonString
825+
count: 1
826+
path: ../src/webauthn/src/AuthenticationExtensions/PaymentExtensionOutputChecker.php
827+
828+
-
829+
rawMessage: 'Part $actualPayeeOrigin (mixed) of encapsed string cannot be cast to string.'
830+
identifier: encapsedStringPart.nonString
831+
count: 1
832+
path: ../src/webauthn/src/AuthenticationExtensions/PaymentExtensionOutputChecker.php
833+
834+
-
835+
rawMessage: 'Part $actualRpId (mixed) of encapsed string cannot be cast to string.'
836+
identifier: encapsedStringPart.nonString
837+
count: 1
838+
path: ../src/webauthn/src/AuthenticationExtensions/PaymentExtensionOutputChecker.php
839+
840+
-
841+
rawMessage: 'Should not use node with type "Expr_Empty", please change the code.'
842+
identifier: ekinoBannedCode.expression
843+
count: 2
844+
path: ../src/webauthn/src/AuthenticationExtensions/PaymentExtensionOutputChecker.php
845+
774846
-
775847
rawMessage: '''
776848
Instanceof references deprecated class Webauthn\PublicKeyCredentialSource:
@@ -978,6 +1050,60 @@ parameters:
9781050
count: 1
9791051
path: ../src/webauthn/src/Counter/ThrowExceptionIfInvalid.php
9801052

1053+
-
1054+
rawMessage: 'Parameter $payeeName of class Webauthn\SecurePaymentConfirmation\CollectedClientAdditionalPaymentData constructor expects string, mixed given.'
1055+
identifier: argument.type
1056+
count: 1
1057+
path: ../src/webauthn/src/Denormalizer/CollectedClientAdditionalPaymentDataDenormalizer.php
1058+
1059+
-
1060+
rawMessage: 'Parameter $payeeOrigin of class Webauthn\SecurePaymentConfirmation\CollectedClientAdditionalPaymentData constructor expects string, mixed given.'
1061+
identifier: argument.type
1062+
count: 1
1063+
path: ../src/webauthn/src/Denormalizer/CollectedClientAdditionalPaymentDataDenormalizer.php
1064+
1065+
-
1066+
rawMessage: 'Parameter $rpId of class Webauthn\SecurePaymentConfirmation\CollectedClientAdditionalPaymentData constructor expects string, mixed given.'
1067+
identifier: argument.type
1068+
count: 1
1069+
path: ../src/webauthn/src/Denormalizer/CollectedClientAdditionalPaymentDataDenormalizer.php
1070+
1071+
-
1072+
rawMessage: 'Parameter $topOrigin of class Webauthn\SecurePaymentConfirmation\CollectedClientAdditionalPaymentData constructor expects string, mixed given.'
1073+
identifier: argument.type
1074+
count: 1
1075+
path: ../src/webauthn/src/Denormalizer/CollectedClientAdditionalPaymentDataDenormalizer.php
1076+
1077+
-
1078+
rawMessage: 'Parameter $displayName of class Webauthn\SecurePaymentConfirmation\PaymentCredentialInstrument constructor expects string, mixed given.'
1079+
identifier: argument.type
1080+
count: 1
1081+
path: ../src/webauthn/src/Denormalizer/PaymentCredentialInstrumentDenormalizer.php
1082+
1083+
-
1084+
rawMessage: 'Parameter $icon of class Webauthn\SecurePaymentConfirmation\PaymentCredentialInstrument constructor expects string, mixed given.'
1085+
identifier: argument.type
1086+
count: 1
1087+
path: ../src/webauthn/src/Denormalizer/PaymentCredentialInstrumentDenormalizer.php
1088+
1089+
-
1090+
rawMessage: 'Parameter $iconMustBeShown of class Webauthn\SecurePaymentConfirmation\PaymentCredentialInstrument constructor expects bool, mixed given.'
1091+
identifier: argument.type
1092+
count: 1
1093+
path: ../src/webauthn/src/Denormalizer/PaymentCredentialInstrumentDenormalizer.php
1094+
1095+
-
1096+
rawMessage: 'Parameter $currency of class Webauthn\SecurePaymentConfirmation\PaymentCurrencyAmount constructor expects string, mixed given.'
1097+
identifier: argument.type
1098+
count: 1
1099+
path: ../src/webauthn/src/Denormalizer/PaymentCurrencyAmountDenormalizer.php
1100+
1101+
-
1102+
rawMessage: 'Parameter $value of class Webauthn\SecurePaymentConfirmation\PaymentCurrencyAmount constructor expects string, mixed given.'
1103+
identifier: argument.type
1104+
count: 1
1105+
path: ../src/webauthn/src/Denormalizer/PaymentCurrencyAmountDenormalizer.php
1106+
9811107
-
9821108
rawMessage: '''
9831109
Access to deprecated property $icon of class Webauthn\PublicKeyCredentialEntity:
@@ -1099,4 +1225,4 @@ parameters:
10991225
rawMessage: 'Call to static method fromAsn1() of internal class Cose\Algorithm\Signature\ECDSA\ECSignature from outside its root namespace Cose.'
11001226
identifier: staticMethod.internalClass
11011227
count: 3
1102-
path: ../src/webauthn/src/Util/CoseSignatureFixer.php
1228+
path: ../src/webauthn/src/Util/CoseSignatureFixer.php

0 commit comments

Comments
 (0)