Skip to content

Commit f07d938

Browse files
committed
small bugfix for incompatible types
1 parent ec6bcde commit f07d938

File tree

1 file changed

+1
-3
lines changed
  • src/app/code/community/Matomo/Analytics/Block

1 file changed

+1
-3
lines changed

src/app/code/community/Matomo/Analytics/Block/Script.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
declare(strict_types=1);
33

44
/**
5-
*
65
* Based on Piwik Extension for Magento created by Adrian Speyer
76
*
87
* @category Matomo
98
* @package Matomo_Analytics
109
* @copyright Copyright (c) 2018 Thiago Contardi.
1110
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
12-
*
1311
*/
1412

1513
final class Matomo_Analytics_Block_Script extends Mage_Core_Block_Template
@@ -59,7 +57,7 @@ public function getOrdersTrackingCode(): string
5957
}
6058

6159
if ($item->getQtyOrdered()) {
62-
$qty = number_format($item->getQtyOrdered(), 0, '.', '');
60+
$qty = number_format((float)$item->getQtyOrdered(), 0, '.', '');
6361
} else {
6462
$qty = '0';
6563
}

0 commit comments

Comments
 (0)