fix tests

This commit is contained in:
root
2026-06-11 11:46:12 -04:00
parent c91fa2ce4d
commit 5ead80fdc7
1489 changed files with 11349 additions and 10305 deletions
@@ -15,6 +15,7 @@ class HomeworkTrackingCalendarService
}
if ($startYear === null) {
$today = new DateTime('today');
return [$today, $today];
}
@@ -31,6 +32,7 @@ class HomeworkTrackingCalendarService
}
} catch (\Throwable $e) {
$today = new DateTime('today');
return [$today, $today];
}
@@ -73,7 +75,7 @@ class HomeworkTrackingCalendarService
$dateToIndex = [];
$idx = 0;
foreach ($sundays as $ymd) {
if (!isset($eventDays[$ymd])) {
if (! isset($eventDays[$ymd])) {
$idx++;
$dateToIndex[$ymd] = $idx;
} else {