mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix psalm errors
This commit is contained in:
parent
a237b9af53
commit
b2fa7b985b
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ class ItemFactory {
|
|||
* @return Item[]
|
||||
*/
|
||||
public function from_wc_cart( \WC_Cart $cart ): array {
|
||||
$shipping_tax = round( $cart->get_shipping_tax(), 2 ) ?? 0;
|
||||
$shipping_tax = round( $cart->get_shipping_tax(), 2 );
|
||||
$items = array_map(
|
||||
function ( array $item ) use ( $shipping_tax ): Item {
|
||||
$product = $item['data'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue