We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ed73a8 commit dc63f16Copy full SHA for dc63f16
app/code/Magento/Directory/Model/PriceCurrency.php
@@ -140,7 +140,6 @@ protected function getStore($scope = null)
140
$scope = $this->storeManager->getStore($scope);
141
}
142
} catch (\Exception $e) {
143
- $this->logger->critical($e);
144
$scope = $this->storeManager->getStore();
145
146
@@ -153,7 +152,7 @@ protected function getStore($scope = null)
153
152
public function round($price)
154
{
155
// To fix rounding error in PHP 8.4
156
- if (str_contains(PHP_VERSION, '8.4')) {
+ if (version_compare(PHP_VERSION, '8.4', '>=')) {
157
return round((float)sprintf("%.3f", $price), 2);
158
159
return round((float) $price, 2);
0 commit comments