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 = []; } /**