Merge pull request woocommerce/woocommerce-admin#2221 from woocommerce/fix/string-float-debug

fix warning for string shipping tax meta value
This commit is contained in:
Mike Jolley 2019-05-13 19:11:28 +01:00 committed by GitHub
commit 03b564e7a5
1 changed files with 1 additions and 1 deletions

View File

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