mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Fix lint
This commit is contained in:
parent
b31274efb0
commit
b0e47f4460
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ class WcSubscriptionsModule implements ModuleInterface {
|
|||
function ( $payment_method_to_display, $subscription, $context ) {
|
||||
$payment_gateway = wc_get_payment_gateway_by_order( $subscription );
|
||||
|
||||
if ( $payment_gateway && $payment_gateway->id === PayPalGateway::ID ) {
|
||||
if ( $payment_gateway instanceof \WC_Payment_Gateway && $payment_gateway->id === PayPalGateway::ID ) {
|
||||
return $subscription->get_payment_method_title( $context );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue