This commit is contained in:
James Cole 2019-09-07 16:19:01 +02:00
parent cb9c59e5e3
commit c0fd371430
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -158,17 +158,17 @@ class SummaryController extends Controller
* @param array $spentInfo
* @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) {
if ($array['currency_id'] === $currency->id) {
return $array['amount'];
return (string)$array['amount'];
}
}
return 0.0; // @codeCoverageIgnore
return '0'; // @codeCoverageIgnore
}
/**