mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-04-28 18:42:59 +00:00
Fix null type issues.
This commit is contained in:
@@ -34,7 +34,7 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
/**
|
||||
* @property Carbon $date
|
||||
* @property PiggyBank $piggyBank
|
||||
* @property PiggyBank|null $piggyBank
|
||||
*/
|
||||
#[ObservedBy([PiggyBankEventObserver::class])]
|
||||
class PiggyBankEvent extends Model
|
||||
|
||||
@@ -90,7 +90,7 @@ class AccountValidator
|
||||
Log::debug('AccountValidator source is set to NULL');
|
||||
}
|
||||
if ($account instanceof Account) {
|
||||
Log::debug(sprintf('AccountValidator source is set to #%d: "%s" (%s)', $account->id, $account->name, $account->accountType?->type));
|
||||
Log::debug(sprintf('AccountValidator source is set to #%d: "%s" (%s)', $account->id, $account->name, $account->accountType->type));
|
||||
}
|
||||
$this->source = $account;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user