Initial effort to make code 8.0 compatible.

This commit is contained in:
James Cole
2020-12-17 06:31:23 +01:00
parent 07fa1b301f
commit 013ebbf039
2 changed files with 2 additions and 2 deletions

View File

@@ -202,7 +202,7 @@ class Amount
$fmt->setSymbol(NumberFormatter::CURRENCY_SYMBOL, $symbol);
$fmt->setAttribute(NumberFormatter::MIN_FRACTION_DIGITS, $decimalPlaces);
$fmt->setAttribute(NumberFormatter::MAX_FRACTION_DIGITS, $decimalPlaces);
$result = $fmt->format($amount);
$result = $fmt->format((float) $amount);
if (true === $coloured) {
if ($amount > 0) {