Skip to content

Commit

Permalink
Emergency fix for number_format (3 args instead of 4) under PHP 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jissereitsma committed Jun 16, 2023
1 parent cea3c45 commit 32dd608
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [3.3.3] - 16 June 2023
### Fixed
- Emergency fix for `number_format` (3 args instead of 4) under PHP 7.4

## [3.3.2] - 16 June 2023
### Fixed
- Guarantee that cart value is always returned with 4 decimals
Expand Down
2 changes: 1 addition & 1 deletion DataLayer/Tag/Cart/CartValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ public function __construct(
*/
public function get(): string
{
return number_format((float)$this->cartModel->getQuote()->getBaseGrandTotal(), 4, '.');
return number_format((float)$this->cartModel->getQuote()->getBaseGrandTotal(), 4);
}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yireo/magento2-googletagmanager2",
"version": "3.3.2",
"version": "3.3.3",
"license": "OSL-3.0",
"type": "magento2-module",
"homepage": "https://www.yireo.com/software/magento-extensions/googletagmanager2",
Expand Down

0 comments on commit 32dd608

Please sign in to comment.