From 48d3130b36eb5196f76e961c6ff749c201950277 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 1 Sep 2019 14:42:27 +0200 Subject: [PATCH] Fix #2527 --- app/Helpers/Collector/GroupCollector.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Helpers/Collector/GroupCollector.php b/app/Helpers/Collector/GroupCollector.php index eb5b1bb2cc..dd1db60748 100644 --- a/app/Helpers/Collector/GroupCollector.php +++ b/app/Helpers/Collector/GroupCollector.php @@ -895,15 +895,15 @@ class GroupCollector implements GroupCollectorInterface /** * @param array $existingJournal - * @param TransactionGroup $newGroup + * @param TransactionJournal $newJournal * * @return array */ - private function mergeTags(array $existingJournal, TransactionGroup $newGroup): array + private function mergeTags(array $existingJournal, TransactionJournal $newJournal): array { - $newArray = $newGroup->toArray(); + $newArray = $newJournal->toArray(); if (isset($newArray['tag_id'])) { // assume the other fields are present as well. - $tagId = (int)$newGroup['tag_id']; + $tagId = (int)$newJournal['tag_id']; $tagDate = null; try {