Fix various phpstan issues.

This commit is contained in:
James Cole
2025-01-03 19:16:38 +01:00
parent 6cd60951ba
commit 959d168352
4 changed files with 5 additions and 3 deletions

View File

@@ -175,6 +175,7 @@ class Amount
if ($cache->has()) {
return $cache->get();
}
/** @var TransactionCurrency $default */
$default = $userGroup->currencies()->where('group_default', true)->first();
if (null === $default) {
$default = $this->getSystemCurrency();