mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Fix the PSALM
This commit is contained in:
parent
6599686329
commit
b350a20e34
1 changed files with 1 additions and 1 deletions
|
@ -392,7 +392,7 @@ class CompatModule implements ModuleInterface {
|
||||||
protected function initialize_nyp_compat_layer(): void {
|
protected function initialize_nyp_compat_layer(): void {
|
||||||
add_filter(
|
add_filter(
|
||||||
'woocommerce_paypal_payments_shipping_callback_cart_line_item_total',
|
'woocommerce_paypal_payments_shipping_callback_cart_line_item_total',
|
||||||
static function( $total, $cart_item ) {
|
static function( string $total, array $cart_item ): string {
|
||||||
if ( ! isset( $cart_item['nyp'] ) ) {
|
if ( ! isset( $cart_item['nyp'] ) ) {
|
||||||
return $total;
|
return $total;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue