mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-01 11:56:21 +00:00
Fix various phpstan issues.
This commit is contained in:
@@ -77,7 +77,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((float)$rounded); // intentional float
|
||||
$result = (string) $fmt->format((float)$rounded); // intentional float
|
||||
|
||||
if (true === $coloured) {
|
||||
if (1 === bccomp($rounded, '0')) {
|
||||
|
||||
Reference in New Issue
Block a user