From c0fd3714307a847d5eafd63ef083422754d7bdc4 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 7 Sep 2019 16:19:01 +0200 Subject: [PATCH] Fix #2557 --- app/Api/V1/Controllers/SummaryController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Api/V1/Controllers/SummaryController.php b/app/Api/V1/Controllers/SummaryController.php index a3e1042539..1b70c9c53f 100644 --- a/app/Api/V1/Controllers/SummaryController.php +++ b/app/Api/V1/Controllers/SummaryController.php @@ -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 } /**