remove trailing comma in function call (PHP>=7.3)

This commit is contained in:
Kirill Braslavsky 2021-04-01 13:55:14 +03:00
parent 7d0bf5299c
commit 9096cc3277

View file

@ -216,7 +216,7 @@ class SmartButton implements SmartButtonInterface {
$output = sprintf(
'<p class="form-row form-row-wide"><label>%1$s</label><select id="saved-credit-card" name="saved_credit_card"><option value="">%2$s</option>',
esc_html__( 'Or select a saved Credit Card payment', 'woocommerce-paypal-payments' ),
esc_html__( 'Choose a saved payment', 'woocommerce-paypal-payments' ),
esc_html__( 'Choose a saved payment', 'woocommerce-paypal-payments' )
);
foreach ( $tokens as $token ) {
if ( isset( $token->source()->card ) ) {