File tree Expand file tree Collapse file tree 6 files changed +7
-7
lines changed
Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ protected function getPrice(Product $product): float
258258 {
259259 $ priceInfo = $ product ->getPriceInfo ()->getPrice ('final_price ' )->getAmount ();
260260 $ price = $ priceInfo ->getValue ();
261- return $ this ->formatPrice ($ price );
261+ return $ this ->formatPrice (( float ) $ price );
262262 }
263263
264264 /**
@@ -274,7 +274,7 @@ protected function getProductValue($product): float
274274 $ value = $ priceInfo ->getValue ();
275275 }
276276
277- return $ this ->formatPrice ($ value );
277+ return $ this ->formatPrice (( float ) $ value );
278278 }
279279
280280 /**
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ protected function getValue(Order $order): float
8888 $ orderValue -= $ order ->getShippingAmount ();
8989 }
9090
91- return $ this ->formatPrice ($ orderValue );
91+ return $ this ->formatPrice (( float ) $ orderValue );
9292 }
9393
9494 /**
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ public function get(Quote $quote): array
6464 'event ' => 'begin_checkout ' ,
6565 'ecommerce ' => [
6666 'currency ' => $ this ->getCurrentCurrencyCode (),
67- 'value ' => $ this ->formatPrice ($ value ),
67+ 'value ' => $ this ->formatPrice (( float ) $ value ),
6868 'coupon ' => $ quote ->getCouponCode () ?: '' ,
6969 'items ' => $ items
7070 ],
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ protected function getValue(QuoteItem $quoteItem): float
5353 if (!$ value && ($ quoteItemProduct = $ quoteItem ->getProduct ())) {
5454 return $ this ->getProductValue ($ quoteItemProduct );
5555 } else {
56- return $ this ->formatPrice ($ value );
56+ return $ this ->formatPrice (( float ) $ value );
5757 }
5858 }
5959}
Original file line number Diff line number Diff line change @@ -45,6 +45,6 @@ protected function getValue(OrderItemInterface $orderItem): float
4545 $ value = (float )$ orderItem ->getPrice ();
4646 }
4747
48- return $ this ->formatPrice ($ value );
48+ return $ this ->formatPrice (( float ) $ value );
4949 }
5050}
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ public function get(Quote $quote): array
6666 'event ' => 'view_cart ' ,
6767 'ecommerce ' => [
6868 'currency ' => $ this ->getCurrentCurrencyCode (),
69- 'value ' => $ this ->formatPrice ($ value ),
69+ 'value ' => $ this ->formatPrice (( float ) $ value ),
7070 'items ' => $ items
7171 ],
7272 'items_count ' => count ($ items ),
You can’t perform that action at this time.
0 commit comments