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:
@@ -69,6 +69,7 @@ class TransactionGroupRepository implements TransactionGroupRepositoryInterface
|
||||
*/
|
||||
public function find(int $groupId): ?TransactionGroup
|
||||
{
|
||||
/** @var TransactionGroup|null */
|
||||
return $this->user->transactionGroups()->find($groupId);
|
||||
}
|
||||
|
||||
@@ -290,6 +291,7 @@ class TransactionGroupRepository implements TransactionGroupRepositoryInterface
|
||||
/** @var TransactionJournal $journal */
|
||||
$journal = $this->user->transactionJournals()->find($journalId);
|
||||
|
||||
/** @var Location|null */
|
||||
return $journal->locations()->first();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user