diff --git a/lib/Parser/MimeDir.php b/lib/Parser/MimeDir.php index fcf4127b0..257fcdc05 100644 --- a/lib/Parser/MimeDir.php +++ b/lib/Parser/MimeDir.php @@ -2,7 +2,6 @@ namespace Sabre\VObject\Parser; -use DateTimeImmutable; use DateTimeInterface; use Sabre\VObject\Component; use Sabre\VObject\Component\VCalendar; @@ -91,7 +90,7 @@ class MimeDir extends Parser * * @return \Sabre\VObject\Document */ - public function parse($input = null, $options = 0, DateTimeInterface $start = null, DateTimeInterface $end = null) + public function parse($input = null, $options = 0) { $this->root = null; @@ -103,8 +102,6 @@ public function parse($input = null, $options = 0, DateTimeInterface $start = nu $this->options = $options; } - $this->setTimeRange($start, $end); - $this->parseDocument(); return $this->root; @@ -207,7 +204,7 @@ protected function parseDocument() if ($result) { if ($result instanceof Component\VEvent) { if ($this->start && $this->end) { - if (! $result->isInTimeRange($this->start, $this->end)) { + if (!$result->isInTimeRange($this->start, $this->end)) { continue; } }