Skip to content

Firefly III: a personal finances manager

Actually use journal [skip ci]

James Cole018941c5b347
diff --git a/app/Import/Storage/ImportStorage.php b/app/Import/Storage/ImportStorage.php
index 2f98ae6f46..ee2aceb74f 100644
--- a/app/Import/Storage/ImportStorage.php
+++ b/app/Import/Storage/ImportStorage.php
@@ -43,8 +43,6 @@ class ImportStorage
private $objects;
/** @var Collection */
private $rules;
- /** @var TagRepositoryInterface */
- private $tagRepository;
/** @var array */
private $transfers = [];
diff --git a/app/Import/Storage/ImportSupport.php b/app/Import/Storage/ImportSupport.php
index 44ce15c4d9..7af7e94203 100644
--- a/app/Import/Storage/ImportSupport.php
+++ b/app/Import/Storage/ImportSupport.php
@@ -47,7 +47,7 @@ trait ImportSupport
{
if ($this->rules->count() > 0) {
$this->rules->each(
- function (Rule $rule) {
+ function (Rule $rule) use($journal) {
Log::debug(sprintf('Going to apply rule #%d to journal %d.', $rule->id, $journal->id));
$processor = Processor::make($rule);
$processor->handleTransactionJournal($journal);