mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	Fix phpstan issues.
This commit is contained in:
		| @@ -248,8 +248,8 @@ class AvailableBudgetRepository implements AvailableBudgetRepositoryInterface | ||||
|             $availableBudget = new AvailableBudget(); | ||||
|             $availableBudget->user()->associate($this->user); | ||||
|             $availableBudget->transactionCurrency()->associate($currency); | ||||
|             $availableBudget->start_date = $start->format('Y-m-d'); | ||||
|             $availableBudget->end_date   = $end->format('Y-m-d'); | ||||
|             $availableBudget->start_date = $start->startOfDay(); | ||||
|             $availableBudget->end_date   = $end->endOfDay(); | ||||
|         } | ||||
|         $availableBudget->amount = $amount; | ||||
|         $availableBudget->save(); | ||||
| @@ -262,7 +262,7 @@ class AvailableBudgetRepository implements AvailableBudgetRepositoryInterface | ||||
|      */ | ||||
|     public function setUser(User | Authenticatable | null $user): void | ||||
|     { | ||||
|         if (null !== $user) { | ||||
|         if ($user instanceof User) { | ||||
|             $this->user = $user; | ||||
|         } | ||||
|     } | ||||
|   | ||||
| @@ -275,7 +275,7 @@ class BudgetLimitRepository implements BudgetLimitRepositoryInterface | ||||
|      */ | ||||
|     public function setUser(User | Authenticatable | null $user): void | ||||
|     { | ||||
|         if (null !== $user) { | ||||
|         if ($user instanceof User) { | ||||
|             $this->user = $user; | ||||
|         } | ||||
|     } | ||||
|   | ||||
| @@ -148,7 +148,7 @@ class BudgetRepository implements BudgetRepositoryInterface | ||||
|      */ | ||||
|     public function setUser(User | Authenticatable | null $user): void | ||||
|     { | ||||
|         if (null !== $user) { | ||||
|         if ($user instanceof User) { | ||||
|             $this->user = $user; | ||||
|         } | ||||
|     } | ||||
| @@ -589,7 +589,7 @@ class BudgetRepository implements BudgetRepositoryInterface | ||||
|             static function (Attachment $attachment) use ($disk) { | ||||
|                 $notes                   = $attachment->notes()->first(); | ||||
|                 $attachment->file_exists = $disk->exists($attachment->fileName()); | ||||
|                 $attachment->notes       = $notes ? $notes->text : ''; | ||||
|                 $attachment->notes_text  = $notes ? $notes->text : ''; | ||||
| 
 | ||||
|                 return $attachment; | ||||
|             } | ||||
|   | ||||
| @@ -143,7 +143,7 @@ class NoBudgetRepository implements NoBudgetRepositoryInterface | ||||
|      */ | ||||
|     public function setUser(User | Authenticatable | null $user): void | ||||
|     { | ||||
|         if (null !== $user) { | ||||
|         if ($user instanceof User) { | ||||
|             $this->user = $user; | ||||
|         } | ||||
|     } | ||||
|   | ||||
| @@ -204,7 +204,7 @@ class OperationsRepository implements OperationsRepositoryInterface | ||||
|      */ | ||||
|     public function setUser(User | Authenticatable | null $user): void | ||||
|     { | ||||
|         if (null !== $user) { | ||||
|         if ($user instanceof User) { | ||||
|             $this->user = $user; | ||||
|         } | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user