Skip to content

Firefly III: a personal finances manager

Initial effort to make code 8.0 compatible.

James Cole013ebbf0395f
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"