From 5fce6af00a7cca4994b2b08b92359bf9e54a2a52 Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 12 Nov 2020 20:26:41 +0100 Subject: [PATCH] Fix #4055 --- app/Factory/TransactionFactory.php | 2 +- app/Generator/Report/Budget/MonthReportGenerator.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Factory/TransactionFactory.php b/app/Factory/TransactionFactory.php index 0b5f3f2aa9..49a1b59ffd 100644 --- a/app/Factory/TransactionFactory.php +++ b/app/Factory/TransactionFactory.php @@ -40,7 +40,7 @@ class TransactionFactory { private Account $account; private TransactionCurrency $currency; - private TransactionCurrency $foreignCurrency; + private ?TransactionCurrency $foreignCurrency; private TransactionJournal $journal; private bool $reconciled; private User $user; diff --git a/app/Generator/Report/Budget/MonthReportGenerator.php b/app/Generator/Report/Budget/MonthReportGenerator.php index e44cce9469..e0f43f9dfe 100644 --- a/app/Generator/Report/Budget/MonthReportGenerator.php +++ b/app/Generator/Report/Budget/MonthReportGenerator.php @@ -52,7 +52,7 @@ class MonthReportGenerator implements ReportGeneratorInterface */ public function __construct() { - $this->expenses = new Collection; + $this->expenses = []; } /**