fix: stupid foreach

This commit is contained in:
Maël Gangloff 2025-08-06 19:44:11 +02:00
parent 206ca602c9
commit c8c3d1db3e
No known key found for this signature in database
GPG Key ID: 11FDC81C24A7F629
2 changed files with 4 additions and 2 deletions

View File

@ -70,8 +70,8 @@ class WatchListController extends AbstractController
/** @var Domain $domain */
foreach ($watchList->getDomains()->getIterator() as $domain) {
foreach ($domain->getEvents() as $event) {
$domain->addEvent($event);
foreach ($domain->getDomainCalendarEvents() as $event) {
$calendar->addEvent($event);
}
}

View File

@ -608,6 +608,8 @@ class Domain
}
/**
* @return Event[]
*
* @throws ParseException
* @throws EofException
* @throws InvalidDataException