mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix round() calls for PHP 8.0
This commit is contained in:
@@ -59,7 +59,7 @@ class ExpandedForm
|
||||
|
||||
// make sure value is formatted nicely:
|
||||
if (null !== $value && '' !== $value) {
|
||||
$value = round($value, 8);
|
||||
$value = round((float) $value, 8);
|
||||
}
|
||||
try {
|
||||
$html = view('form.amount-no-currency', compact('classes', 'name', 'label', 'value', 'options'))->render();
|
||||
@@ -252,7 +252,7 @@ class ExpandedForm
|
||||
|
||||
// make sure value is formatted nicely:
|
||||
if (null !== $value && '' !== $value) {
|
||||
$value = round($value, $selectedCurrency->decimal_places);
|
||||
$value = round((float) $value, $selectedCurrency->decimal_places);
|
||||
}
|
||||
try {
|
||||
$html = view('form.non-selectable-amount', compact('selectedCurrency', 'classes', 'name', 'label', 'value', 'options'))->render();
|
||||
|
||||
Reference in New Issue
Block a user