Skip to content

Commit 178f886

Browse files
author
Stanislav Idolov
authored
ENGCOM-1392: [Forwardport] Fix a non well formed numeric value encountered on Magento/Directory/… #14862
2 parents c4af123 + 21ee367 commit 178f886

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)