mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 09:08:09 +08:00
Cast item get_quantity
into int
This commit is contained in:
parent
437a6654c5
commit
65aa588ba8
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ class ItemFactory {
|
|||
*
|
||||
* @var \WC_Product $product
|
||||
*/
|
||||
$quantity = $item->get_quantity();
|
||||
$quantity = (int) $item->get_quantity();
|
||||
|
||||
$price = (float) $order->get_item_subtotal( $item, true );
|
||||
$price_without_tax = (float) $order->get_item_subtotal( $item, false );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue