From 7d1f5f525710bbfb05afae6b1c1a924a79b0dab3 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 1 May 2021 11:34:11 +0200 Subject: [PATCH] Cast to int --- app/Services/Internal/Support/JournalServiceTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Internal/Support/JournalServiceTrait.php b/app/Services/Internal/Support/JournalServiceTrait.php index bdbdf9ab44..4427665776 100644 --- a/app/Services/Internal/Support/JournalServiceTrait.php +++ b/app/Services/Internal/Support/JournalServiceTrait.php @@ -96,7 +96,7 @@ trait JournalServiceTrait $search = null; // first attempt, find by ID. if (null !== $data['id']) { - $search = $this->accountRepository->findNull($data['id']); + $search = $this->accountRepository->findNull((int) $data['id']); if (null !== $search && in_array($search->accountType->type, $types, true)) { Log::debug( sprintf('Found "account_id" object: #%d, "%s" of type %s', $search->id, $search->name, $search->accountType->type)