mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-09 20:11:22 +00:00
Fix various phpstan issues.
This commit is contained in:
@@ -324,7 +324,7 @@ trait TransactionValidation
|
||||
*/
|
||||
private function isLiability(Account $account): bool
|
||||
{
|
||||
$type = $account->accountType?->type;
|
||||
$type = $account->accountType->type;
|
||||
if (in_array($type, config('firefly.valid_liabilities'), true)) {
|
||||
return true;
|
||||
}
|
||||
@@ -338,7 +338,7 @@ trait TransactionValidation
|
||||
*/
|
||||
private function isAsset(Account $account): bool
|
||||
{
|
||||
$type = $account->accountType?->type;
|
||||
$type = $account->accountType->type;
|
||||
return $type === AccountType::ASSET;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user