Closed antonioperic closed 4 months ago
Great question - there currently isn't a mechanism for this functionality.
What would you expect? A new property called isValid
which returns true
or false
?
Great question - there currently isn't a mechanism for this functionality.
What would you expect? A new property called
isValid
which returnstrue
orfalse
?
I just bumped into this problem today as well :) I was wondering why it was working with garbage input, I just assumed it would return NULL if no calendar was found.
Please feel free to reopen if/when you'd like to submit a PR.
Hi,
don't know where to ask, so I will try here.
I am using this line of code
$iCal = new ICal($message->getCalendarUrl());
and the result is always a valid object. Even if I send 'something' as calendarUrl
example of result
How I can know that parsed URL, or text is a valid calendar file?
thank you