diff --git a/modules/ppcp-api-client/src/Entity/PaymentSource.php b/modules/ppcp-api-client/src/Entity/PaymentSource.php index bdf0cf36e..36e1ee2a2 100644 --- a/modules/ppcp-api-client/src/Entity/PaymentSource.php +++ b/modules/ppcp-api-client/src/Entity/PaymentSource.php @@ -33,10 +33,10 @@ class PaymentSource { /** * PaymentSource constructor. * - * @param string $name Payment source name. - * @param stdClass $properties Payment source properties. + * @param string $name Payment source name. + * @param object $properties Payment source properties. */ - public function __construct( string $name, stdClass $properties ) { + public function __construct( string $name, object $properties ) { $this->name = $name; $this->properties = $properties; } @@ -53,9 +53,9 @@ class PaymentSource { /** * Payment source properties. * - * @return stdClass + * @return object */ - public function properties(): stdClass { + public function properties(): object { return $this->properties; } } diff --git a/modules/ppcp-wc-subscriptions/src/RenewalHandler.php b/modules/ppcp-wc-subscriptions/src/RenewalHandler.php index a4db44286..7440074f9 100644 --- a/modules/ppcp-wc-subscriptions/src/RenewalHandler.php +++ b/modules/ppcp-wc-subscriptions/src/RenewalHandler.php @@ -212,11 +212,6 @@ class RenewalHandler { } } - /** - * Suppress ArgumentTypeCoercion - * - * @psalm-suppress ArgumentTypeCoercion - */ $payment_source = new PaymentSource( 'card', (object) array(