Your project object parameters should be type hinted

More information: https://insight.symfony.com/what-we-analyse/php.object_parameter_not_type_hinted

  1. // §3.8.4.4: RECURRENCE-ID refers to an instance of a recurring component
  2. if ('' === $main->getRrule() && [] === $main->getRdates() && [] === $main->getRdatePeriods()) {
  3. return ["UID '$uid' has a RECURRENCE-ID but its main event does not recur"];
  4. }
  5. // §3.8.4.4: RECURRENCE-ID MUST have the same value type as the DTSTART of the recurring component
  6. if (array_any($events, static fn ($event): bool => $event->isAllDay() !== $main->isAllDay())) {
    The parameter event, which is an object, should be typehinted.
    Time to fix: about 1 hour
    Read doc Permalink Copy Prompt
    Last edited by luc
  7. return ["RECURRENCE-ID of UID '$uid' must have the same value type (DATE or DATE-TIME) as the DTSTART of its main event"];
  8. }
  9. return [];
  10. }