mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +08:00
Fix psalm
This commit is contained in:
parent
056cb9fcc2
commit
dfccf99e71
2 changed files with 4 additions and 3 deletions
|
@ -13,6 +13,7 @@ use WooCommerce\PayPalCommerce\ApiClient\Authentication\UserIdToken;
|
||||||
use WooCommerce\PayPalCommerce\ApiClient\Endpoint\PaymentMethodTokensEndpoint;
|
use WooCommerce\PayPalCommerce\ApiClient\Endpoint\PaymentMethodTokensEndpoint;
|
||||||
use WooCommerce\PayPalCommerce\ApiClient\Endpoint\PaymentTokensEndpoint;
|
use WooCommerce\PayPalCommerce\ApiClient\Endpoint\PaymentTokensEndpoint;
|
||||||
use WooCommerce\PayPalCommerce\ApiClient\Entity\CardAuthenticationResult;
|
use WooCommerce\PayPalCommerce\ApiClient\Entity\CardAuthenticationResult;
|
||||||
|
use WooCommerce\PayPalCommerce\ApiClient\Factory\CardAuthenticationResultFactory;
|
||||||
use WooCommerce\PayPalCommerce\ApiClient\Helper\FailureRegistry;
|
use WooCommerce\PayPalCommerce\ApiClient\Helper\FailureRegistry;
|
||||||
use WooCommerce\PayPalCommerce\Common\Pattern\SingletonDecorator;
|
use WooCommerce\PayPalCommerce\Common\Pattern\SingletonDecorator;
|
||||||
use WooCommerce\PayPalCommerce\ApiClient\Endpoint\BillingSubscriptions;
|
use WooCommerce\PayPalCommerce\ApiClient\Endpoint\BillingSubscriptions;
|
||||||
|
@ -449,8 +450,8 @@ return array(
|
||||||
$container->get( 'api.factory.payment-preferences' )
|
$container->get( 'api.factory.payment-preferences' )
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
'api.factory.card-authentication-result' => static function( ContainerInterface $container ): CardAuthenticationResult {
|
'api.factory.card-authentication-result-factory' => static function( ContainerInterface $container ): CardAuthenticationResultFactory {
|
||||||
return new CardAuthenticationResult();
|
return new CardAuthenticationResultFactory();
|
||||||
},
|
},
|
||||||
'api.helpers.dccapplies' => static function ( ContainerInterface $container ) : DccApplies {
|
'api.helpers.dccapplies' => static function ( ContainerInterface $container ) : DccApplies {
|
||||||
return new DccApplies(
|
return new DccApplies(
|
||||||
|
|
|
@ -260,7 +260,7 @@ return array(
|
||||||
|
|
||||||
'button.helper.three-d-secure' => static function ( ContainerInterface $container ): ThreeDSecure {
|
'button.helper.three-d-secure' => static function ( ContainerInterface $container ): ThreeDSecure {
|
||||||
return new ThreeDSecure(
|
return new ThreeDSecure(
|
||||||
$container->get( 'api.factory.card-authentication-result' ),
|
$container->get( 'api.factory.card-authentication-result-factory' ),
|
||||||
$container->get( 'woocommerce.logger.woocommerce' )
|
$container->get( 'woocommerce.logger.woocommerce' )
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue