mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +08:00
fix psalm error
This commit is contained in:
parent
149c5f5b38
commit
b2aff30580
1 changed files with 12 additions and 2 deletions
|
@ -108,7 +108,12 @@ class FraudProcessorResponse {
|
|||
'3' => __( '3: The merchant did not provide AVS information. Not processed.', 'woocommerce-paypal-payments' ),
|
||||
'4' => __( '4: Address not checked, or acquirer had no response. Service not available.', 'woocommerce-paypal-payments' ),
|
||||
);
|
||||
/* translators: %s is fraud AVS code */
|
||||
/**
|
||||
* Translators: %s is fraud AVS code
|
||||
*
|
||||
* @psalm-suppress PossiblyNullArrayOffset
|
||||
* @psalm-suppress PossiblyNullArgument
|
||||
*/
|
||||
return $messages[ $this->avs_code() ] ?? sprintf( __( '%s: Error', 'woocommerce-paypal-payments' ), $this->avs_code() );
|
||||
}
|
||||
|
||||
|
@ -140,7 +145,12 @@ class FraudProcessorResponse {
|
|||
'3' => __( '3: Merchant has indicated that CVV2 is not present on card', 'woocommerce-paypal-payments' ),
|
||||
'4' => __( '4: Service not available', 'woocommerce-paypal-payments' ),
|
||||
);
|
||||
/* translators: %s is fraud CVV2 code */
|
||||
/**
|
||||
* Translators: %s is fraud CVV2 code
|
||||
*
|
||||
* @psalm-suppress PossiblyNullArrayOffset
|
||||
* @psalm-suppress PossiblyNullArgument
|
||||
*/
|
||||
return $messages[ $this->cvv_code() ] ?? sprintf( __( '%s: Error', 'woocommerce-paypal-payments' ), $this->cvv_code() );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue