Closed axi closed 2 months ago
Hey @u01jmg3, could you check this PR ? Thanks
just thinking about this, I'm using the parser in a loop and before passing it a new url to parse, I have to
// Reset from potential previous iteration
$ical->cal = [];
$ical->isIcalContent = false;
Should'nt that be in a new reset()
method ?
I can update the PR (or create a new one probably)
I've sat on this one for a bit and I don't think knowing that a file starts with BEGIN:VCALENDAR
is enough to say you've validated it as iCal content.
I think if you need this in your code you should track it yourself.
Ok. For reference, this would probably be the minimum for validating a ical content: https://stackoverflow.com/a/67698638/2454746
The parser does already the job, so we can use it to "validate" it's really an ical content.