Cast to int

This commit is contained in:
James Cole 2021-05-01 11:34:11 +02:00
parent ea0942b7fe
commit 7d1f5f5257
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D

View File

@ -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)