u01jmg3 / ics-parser

Parser for iCalendar Events • PHP 8+, 7 (≥ 7.4), 5 (≥ 5.6)
MIT License
439 stars 144 forks source link

Trailing semicolon in RRULE throws a warning #306

Closed tacman closed 2 years ago

tacman commented 2 years ago

Description of the Issue:

ICS: https://amissvillevfr.org/ical.html?from=calendar&id=73874

if the rule has a trailing ;, list() throws a warning, e.g.

"FREQ=MONTHLY;INTERVAL=1;BYDAY=1WE;"

foreach (explode(';', $anEvent['RRULE']) as $s) {
    list($k, $v) = explode('=', $s);
}

I'll submit a PR associated with this issue.