mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Fix #2557
This commit is contained in:
@@ -158,17 +158,17 @@ class SummaryController extends Controller
|
|||||||
* @param array $spentInfo
|
* @param array $spentInfo
|
||||||
* @param TransactionCurrency $currency
|
* @param TransactionCurrency $currency
|
||||||
*
|
*
|
||||||
* @return float
|
* @return string
|
||||||
*/
|
*/
|
||||||
private function findInSpentArray(array $spentInfo, TransactionCurrency $currency): float
|
private function findInSpentArray(array $spentInfo, TransactionCurrency $currency): string
|
||||||
{
|
{
|
||||||
foreach ($spentInfo as $array) {
|
foreach ($spentInfo as $array) {
|
||||||
if ($array['currency_id'] === $currency->id) {
|
if ($array['currency_id'] === $currency->id) {
|
||||||
return $array['amount'];
|
return (string)$array['amount'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0.0; // @codeCoverageIgnore
|
return '0'; // @codeCoverageIgnore
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user