Fix the PSALM

This commit is contained in:
Narek Zakarian 2024-07-09 17:05:05 +04:00
parent 6599686329
commit b350a20e34
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

View file

@ -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;
}