mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 10:47:00 +00:00 
			
		
		
		
	Fix phpstan issues.
This commit is contained in:
		| @@ -251,7 +251,7 @@ class BudgetLimitHandler | ||||
|     { | ||||
|         app('log')->debug(sprintf('BudgetLimitHandler::deleted(#%s)', $event->budgetLimit->id)); | ||||
|         $budgetLimit     = $event->budgetLimit; | ||||
|         $budgetLimit->id = null; | ||||
|         $budgetLimit->id = 0; | ||||
|         $this->updateAvailableBudget($event->budgetLimit); | ||||
|     } | ||||
| 
 | ||||
|   | ||||
| @@ -43,7 +43,7 @@ class PiggyBankObserver | ||||
|         $repetition->piggyBank()->associate($piggyBank); | ||||
|         $repetition->startdate     = $piggyBank->startdate; | ||||
|         $repetition->targetdate    = $piggyBank->targetdate; | ||||
|         $repetition->currentamount = 0; | ||||
|         $repetition->currentamount = '0'; | ||||
|         $repetition->save(); | ||||
|     } | ||||
| 
 | ||||
|   | ||||
| @@ -38,7 +38,7 @@ class WebhookObserver | ||||
|     public function deleting(Webhook $webhook): void | ||||
|     { | ||||
|         app('log')->debug('Observe "deleting" of a webhook.'); | ||||
|         foreach ($webhook->webhookMessages() as $message) { | ||||
|         foreach ($webhook->webhookMessages()->get() as $message) { | ||||
|             $message->delete(); | ||||
|         } | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user