mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 12:25:15 +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 {
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue