mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	Auto commit for release 'develop' on 2024-03-18
This commit is contained in:
		| @@ -122,7 +122,7 @@ class BudgetLimitRepository implements BudgetLimitRepositoryInterface | ||||
|         $budgetLimit->delete(); | ||||
|     } | ||||
| 
 | ||||
|     public function getAllBudgetLimitsByCurrency(TransactionCurrency $currency, Carbon $start = null, Carbon $end = null): Collection | ||||
|     public function getAllBudgetLimitsByCurrency(TransactionCurrency $currency, ?Carbon $start = null, ?Carbon $end = null): Collection | ||||
|     { | ||||
|         return $this->getAllBudgetLimits($start, $end)->filter( | ||||
|             static function (BudgetLimit $budgetLimit) use ($currency) { | ||||
| @@ -131,7 +131,7 @@ class BudgetLimitRepository implements BudgetLimitRepositoryInterface | ||||
|         ); | ||||
|     } | ||||
| 
 | ||||
|     public function getAllBudgetLimits(Carbon $start = null, Carbon $end = null): Collection | ||||
|     public function getAllBudgetLimits(?Carbon $start = null, ?Carbon $end = null): Collection | ||||
|     { | ||||
|         // both are NULL:
 | ||||
|         if (null === $start && null === $end) { | ||||
| @@ -198,7 +198,7 @@ class BudgetLimitRepository implements BudgetLimitRepositoryInterface | ||||
|         ; | ||||
|     } | ||||
| 
 | ||||
|     public function getBudgetLimits(Budget $budget, Carbon $start = null, Carbon $end = null): Collection | ||||
|     public function getBudgetLimits(Budget $budget, ?Carbon $start = null, ?Carbon $end = null): Collection | ||||
|     { | ||||
|         if (null === $end && null === $start) { | ||||
|             return $budget->budgetlimits()->with(['transactionCurrency'])->orderBy('budget_limits.start_date', 'DESC')->get(['budget_limits.*']); | ||||
|   | ||||
| @@ -57,11 +57,11 @@ interface BudgetLimitRepositoryInterface | ||||
|     /** | ||||
|      * TODO this method is not multi currency aware. | ||||
|      */ | ||||
|     public function getAllBudgetLimits(Carbon $start = null, Carbon $end = null): Collection; | ||||
|     public function getAllBudgetLimits(?Carbon $start = null, ?Carbon $end = null): Collection; | ||||
| 
 | ||||
|     public function getAllBudgetLimitsByCurrency(TransactionCurrency $currency, Carbon $start = null, Carbon $end = null): Collection; | ||||
|     public function getAllBudgetLimitsByCurrency(TransactionCurrency $currency, ?Carbon $start = null, ?Carbon $end = null): Collection; | ||||
| 
 | ||||
|     public function getBudgetLimits(Budget $budget, Carbon $start = null, Carbon $end = null): Collection; | ||||
|     public function getBudgetLimits(Budget $budget, ?Carbon $start = null, ?Carbon $end = null): Collection; | ||||
| 
 | ||||
|     public function setUser(null|Authenticatable|User $user): void; | ||||
| 
 | ||||
|   | ||||
| @@ -438,7 +438,7 @@ class BudgetRepository implements BudgetRepositoryInterface | ||||
|      * | ||||
|      * @param null|int $budgetId |null | ||||
|      */ | ||||
|     public function find(int $budgetId = null): ?Budget | ||||
|     public function find(?int $budgetId = null): ?Budget | ||||
|     { | ||||
|         return $this->user->budgets()->find($budgetId); | ||||
|     } | ||||
|   | ||||
| @@ -61,7 +61,7 @@ interface BudgetRepositoryInterface | ||||
| 
 | ||||
|     public function destroyAutoBudget(Budget $budget): void; | ||||
| 
 | ||||
|     public function find(int $budgetId = null): ?Budget; | ||||
|     public function find(?int $budgetId = null): ?Budget; | ||||
| 
 | ||||
|     public function findBudget(?int $budgetId, ?string $budgetName): ?Budget; | ||||
| 
 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user