Skip to content

Commit 21ee367

Browse files
ENGCOM-1392: [Forwardport] Fix a non well formed numeric value encountered on Magento/Directory/… #14862
- Merge Pull Request #14862 from rostyslav-hymon/magento2:2.3-develop-PR-port-14833 - Merged commits: 1. 09cd446
2 parents 18a7e29 + 09cd446 commit 21ee367

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Directory/Model/Currency.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ public function convert($price, $toCurrency = null)
225225
if ($toCurrency === null) {
226226
return $price;
227227
} elseif ($rate = $this->getRate($toCurrency)) {
228-
return $price * $rate;
228+
return floatval($price) * floatval($rate);
229229
}
230230

231231
throw new \Exception(__(

0 commit comments

Comments
 (0)