Skip to content

Firefly III: a personal finances manager

Fix #3736

James Cole2f2a02834b9e
diff --git a/app/Http/Controllers/Budget/CreateController.php b/app/Http/Controllers/Budget/CreateController.php
index f7d0c48482..d6ef0da956 100644
--- a/app/Http/Controllers/Budget/CreateController.php
+++ b/app/Http/Controllers/Budget/CreateController.php
@@ -39,11 +39,8 @@ use Illuminate\View\View;
*/
class CreateController extends Controller
{
- /** @var BudgetRepositoryInterface The budget repository */
- private $repository;
-
- /** @var AttachmentHelperInterface Helper for attachments. */
- private $attachments;
+ private BudgetRepositoryInterface $repository;
+ private AttachmentHelperInterface $attachments;
/**
* CreateController constructor.
diff --git a/app/Repositories/Budget/BudgetRepository.php b/app/Repositories/Budget/BudgetRepository.php
index 939ca1dc8b..ef81a870b5 100644
--- a/app/Repositories/Budget/BudgetRepository.php
+++ b/app/Repositories/Budget/BudgetRepository.php
@@ -317,8 +317,8 @@ class BudgetRepository implements BudgetRepositoryInterface
[
'budget_id' => $newBudget->id,
'transaction_currency_id' => $autoBudget->transaction_currency_id,
- 'start_date' => $start->format('Y-m-d'),
- 'end_date' => $end->format('Y-m-d'),
+ 'start_date' => $start,
+ 'end_date' => $end,
'amount' => $autoBudget->amount,
]
);