From 013ebbf0395f565a39e6cc09fdc9b65dd2aab0fb Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 17 Dec 2020 06:31:23 +0100 Subject: [PATCH] Initial effort to make code 8.0 compatible. --- app/Support/Amount.php | 2 +- composer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Support/Amount.php b/app/Support/Amount.php index a585a86b5c..ede6ff8dc8 100644 --- a/app/Support/Amount.php +++ b/app/Support/Amount.php @@ -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) { diff --git a/composer.json b/composer.json index e3c3399a1b..110ee6e612 100644 --- a/composer.json +++ b/composer.json @@ -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"