billing: tote Null-Pruefungen auf NOT-NULL-Spalten entfernt (phpstan)

current_period_start/-end und invoice_date sind NOT NULL; die nullsafe-
Zugriffe und der Fallback 'n/a' konnten nie greifen. Suite wieder auf
"No errors".

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Kevin Adametz 2026-09-16 12:34:56 +00:00
parent 09ec866aac
commit 58bc82a91f
2 changed files with 9 additions and 7 deletions

View file

@ -134,7 +134,7 @@ class SettleUnpaidLegacyInvoices extends Command
]);
$statuses = $classified
->map(fn (array $entry): string => $entry['source']?->status ?? 'unknown')
->map(fn (array $entry): string => $entry['source']->status ?? 'unknown')
->unique()
->values();
@ -335,8 +335,8 @@ class SettleUnpaidLegacyInvoices extends Command
'UPO #%d · User #%d · Quelle %s (%s, %s)',
$post->id,
$post->user_id,
$source?->number ?? '?',
$source?->status ?? 'unbekannt',
$source->number ?? '?',
$source->status ?? 'unbekannt',
$source?->invoice_date?->toDateString() ?? '-',
);
}