Closed kktsvetkov closed 2 years ago
Also, it seems the last argument for ICal::parseDuration()
is never used. It is $format
but the only place where ICal::parseDuration()
is called, it is null
. Perhaps that last argument can be dropped, as the returned output is a DateTime
and once you receive that object you can format it as you like.
See 2c8cf55
Hi, the phpdoc for
ICal::parseDuration()
might be off as it states$duration
is string, while looking at the code it seems to be aDateInterval
object as its properties are being used such as$duration->y
: