Skip to content

Commit 9637f9c

Browse files
committed
remove DateTime params from parse method
1 parent e5a1a2a commit 9637f9c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/Parser/MimeDir.php

+2-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Sabre\VObject\Parser;
44

5-
use DateTimeImmutable;
65
use DateTimeInterface;
76
use Sabre\VObject\Component;
87
use Sabre\VObject\Component\VCalendar;
@@ -91,7 +90,7 @@ class MimeDir extends Parser
9190
*
9291
* @return \Sabre\VObject\Document
9392
*/
94-
public function parse($input = null, $options = 0, DateTimeInterface $start = null, DateTimeInterface $end = null)
93+
public function parse($input = null, $options = 0)
9594
{
9695
$this->root = null;
9796

@@ -103,8 +102,6 @@ public function parse($input = null, $options = 0, DateTimeInterface $start = nu
103102
$this->options = $options;
104103
}
105104

106-
$this->setTimeRange($start, $end);
107-
108105
$this->parseDocument();
109106

110107
return $this->root;
@@ -207,7 +204,7 @@ protected function parseDocument()
207204
if ($result) {
208205
if ($result instanceof Component\VEvent) {
209206
if ($this->start && $this->end) {
210-
if (! $result->isInTimeRange($this->start, $this->end)) {
207+
if (!$result->isInTimeRange($this->start, $this->end)) {
211208
continue;
212209
}
213210
}

0 commit comments

Comments
 (0)