From ba43d8c3f55cc7c29b4d5ded3183eaa131be4b20 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 4 May 2025 06:15:49 +0200 Subject: [PATCH] Fix type error. --- app/Http/Controllers/Chart/AccountController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Chart/AccountController.php b/app/Http/Controllers/Chart/AccountController.php index 80c803cc68..f8e2a847ed 100644 --- a/app/Http/Controllers/Chart/AccountController.php +++ b/app/Http/Controllers/Chart/AccountController.php @@ -511,7 +511,7 @@ class AccountController extends Controller foreach ($return as $key => $info) { if ('balance' !== $key && 'native_balance' !== $key) { // assume it's a currency: - $setCurrency = $this->currencyRepository->findByCode($key); + $setCurrency = $this->currencyRepository->findByCode((string) $key); $info['currency_symbol'] = $setCurrency->symbol; $info['currency_code'] = $setCurrency->code; $info['label'] = sprintf('%s (%s)', $account->name, $setCurrency->symbol);