Fix null type issues.

This commit is contained in:
James Cole
2026-03-07 10:20:06 +01:00
parent 71698b36e2
commit 19b548a417
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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;
}