mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-14 16:13:54 +00:00
Fix phpstan level 3!
This commit is contained in:
@@ -208,6 +208,7 @@ class UpgradesTransferCurrencies extends Command
|
||||
|
||||
private function getSourceTransaction(TransactionJournal $transfer): ?Transaction
|
||||
{
|
||||
/** @var Transaction|null */
|
||||
return $transfer->transactions()->where('amount', '<', 0)->first();
|
||||
}
|
||||
|
||||
@@ -243,6 +244,7 @@ class UpgradesTransferCurrencies extends Command
|
||||
|
||||
private function getDestinationTransaction(TransactionJournal $transfer): ?Transaction
|
||||
{
|
||||
/** @var Transaction|null */
|
||||
return $transfer->transactions()->where('amount', '>', 0)->first();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user