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
d20912a336
commit
15d398af8f
1 changed files with 10 additions and 0 deletions
|
@ -177,6 +177,16 @@ class WcSubscriptionsModule implements ModuleInterface {
|
|||
|
||||
add_filter(
|
||||
'woocommerce_subscription_payment_method_to_display',
|
||||
/**
|
||||
* Corrects the payment method name for subscriptions.
|
||||
*
|
||||
* @param string $payment_method_to_display The payment method string.
|
||||
* @param \WC_Subscription $subscription The subscription instance.
|
||||
* @param string $context The context, ex: view.
|
||||
* @return string
|
||||
*
|
||||
* @psalm-suppress MissingClosureParamType
|
||||
*/
|
||||
function ( $payment_method_to_display, $subscription, $context ) {
|
||||
$payment_gateway = wc_get_payment_gateway_by_order( $subscription );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue