Your project object parameters should be type hinted
- Read doc
- Productivity
- Minor
More information: https://insight.symfony.com/what-we-analyse/php.object_parameter_not_type_hinted
- // §3.8.4.4: RECURRENCE-ID refers to an instance of a recurring component
- if ('' === $main->getRrule() && [] === $main->getRdates() && [] === $main->getRdatePeriods()) {
- return ["UID '$uid' has a RECURRENCE-ID but its main event does not recur"];
- }
- // §3.8.4.4: RECURRENCE-ID MUST have the same value type as the DTSTART of the recurring component
- if (array_any($events, static fn ($event): bool => $event->isAllDay() !== $main->isAllDay())) {
- return ["RECURRENCE-ID of UID '$uid' must have the same value type (DATE or DATE-TIME) as the DTSTART of its main event"];
- }
- return [];
- }