This commit is contained in:
James Cole
2023-10-30 19:11:02 +01:00
parent 6790c318e2
commit d36feebb71
3 changed files with 10 additions and 6 deletions

View File

@@ -86,7 +86,7 @@ class BillTransformer extends AbstractTransformer
foreach ($payDates as $string) {
$payDatesFormatted[] = Carbon::createFromFormat('!Y-m-d', $string, config('app.timezone'))->toAtomString();
}
$nextExpectedMatch = '';
$nextExpectedMatch = null;
if (null !== ($payDates[0] ?? null)) {
$nextExpectedMatch = Carbon::createFromFormat('!Y-m-d', $payDates[0], config('app.timezone'))->toAtomString();
}