From 85e82f07f51dab340638927262b16f5582c14187 Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Mon, 13 May 2019 15:01:05 -0300 Subject: [PATCH] fix warning for string shipping tax meta value --- .../woocommerce-admin/includes/class-wc-admin-order-trait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce-admin/includes/class-wc-admin-order-trait.php b/plugins/woocommerce-admin/includes/class-wc-admin-order-trait.php index ac54c3170f1..bee2b37b6c0 100644 --- a/plugins/woocommerce-admin/includes/class-wc-admin-order-trait.php +++ b/plugins/woocommerce-admin/includes/class-wc-admin-order-trait.php @@ -60,7 +60,7 @@ trait WC_Admin_Order_Trait { if ( $tax_data ) { foreach ( $order_taxes as $tax_item ) { $tax_item_id = $tax_item->get_rate_id(); - $tax_item_total = isset( $tax_data['total'][ $tax_item_id ] ) ? $tax_data['total'][ $tax_item_id ] : 0; + $tax_item_total = isset( $tax_data['total'][ $tax_item_id ] ) ? (float) $tax_data['total'][ $tax_item_id ] : 0; $total_shipping_tax_amount += $tax_item_total; } }