From 7e3ba3c27fe227e17bc273a8d367672308bec73f Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 9 Sep 2018 11:18:05 +0200 Subject: [PATCH] Fix JSON encode #1668 --- app/Services/Ynab/Request/GetBudgetsRequest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/Ynab/Request/GetBudgetsRequest.php b/app/Services/Ynab/Request/GetBudgetsRequest.php index a39e363a7f..5cff5aff26 100644 --- a/app/Services/Ynab/Request/GetBudgetsRequest.php +++ b/app/Services/Ynab/Request/GetBudgetsRequest.php @@ -56,8 +56,8 @@ class GetBudgetsRequest extends YnabRequest $rawBudgets = $result['data']['budgets'] ?? []; $freshBudgets = []; foreach ($rawBudgets as $rawBudget) { - Log::debug(sprintf('Raw content of budget is: %s', json_encode($rawBudget, true))); - Log::debug(sprintf('Content of currency format is: %s', json_encode($rawBudget['currency_format'] ?? [], true))); + Log::debug(sprintf('Raw content of budget is: %s', json_encode($rawBudget))); + Log::debug(sprintf('Content of currency format is: %s', json_encode($rawBudget['currency_format'] ?? []))); Log::debug(sprintf('ISO code is: %s', $rawBudget['currency_format']['iso_code'] ?? '(none)')); $freshBudgets[] = [ 'id' => $rawBudget['id'],