From 1b0fe84968c7dfa6dfa2d6790c4557ecde713d0e Mon Sep 17 00:00:00 2001 From: Narek Zakarian Date: Thu, 17 Mar 2022 17:03:32 +0400 Subject: [PATCH] Fix the psalm error --- modules/ppcp-api-client/src/Factory/ItemFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ppcp-api-client/src/Factory/ItemFactory.php b/modules/ppcp-api-client/src/Factory/ItemFactory.php index 7145583d8..2ea5be2c2 100644 --- a/modules/ppcp-api-client/src/Factory/ItemFactory.php +++ b/modules/ppcp-api-client/src/Factory/ItemFactory.php @@ -61,7 +61,7 @@ class ItemFactory { mb_substr( $product->get_name(), 0, 127 ), new Money( $price_without_tax_rounded, $this->currency ), $quantity, - substr( wp_strip_all_tags( $product->get_description() ), 0, 127 ), + substr( wp_strip_all_tags( $product->get_description() ), 0, 127 ) ?: '', $tax, $product->get_sku(), ( $product->is_virtual() ) ? Item::DIGITAL_GOODS : Item::PHYSICAL_GOODS