mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix phpstan level 3!
This commit is contained in:
@@ -175,7 +175,7 @@ class UpgradesVariousCurrencyInformation extends Command
|
||||
*/
|
||||
private function getLeadTransaction(TransactionJournal $journal): ?Transaction
|
||||
{
|
||||
/** @var Transaction $lead */
|
||||
/** @var Transaction|null $lead */
|
||||
$lead = null;
|
||||
|
||||
switch ($journal->transactionType->type) {
|
||||
@@ -214,7 +214,7 @@ class UpgradesVariousCurrencyInformation extends Command
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
/** @var Transaction|null */
|
||||
return $lead;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user