From b350a20e345d1aa9325eea60f58b11fba974cb1e Mon Sep 17 00:00:00 2001 From: Narek Zakarian Date: Tue, 9 Jul 2024 17:05:05 +0400 Subject: [PATCH] Fix the PSALM --- modules/ppcp-compat/src/CompatModule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ppcp-compat/src/CompatModule.php b/modules/ppcp-compat/src/CompatModule.php index aa6829cc0..32a8ff4cc 100644 --- a/modules/ppcp-compat/src/CompatModule.php +++ b/modules/ppcp-compat/src/CompatModule.php @@ -392,7 +392,7 @@ class CompatModule implements ModuleInterface { protected function initialize_nyp_compat_layer(): void { add_filter( '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'] ) ) { return $total; }