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
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D
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) {

View File

@ -98,7 +98,7 @@
"league/csv": "^9.6",
"league/fractal": "0.*",
"pragmarx/google2fa": "^8.0",
"pragmarx/recovery": "^0.1.0",
"jc5/recovery": "^2",
"predis/predis": "^1.1",
"ramsey/uuid": "^4.1",
"rcrowe/twigbridge": "^0.12.1"