Skip to content

Commit bbe1514

Browse files
committed
getFrom() と getTo() メソッドの戻り値の型をジェネリックに変更
1 parent 44f443c commit bbe1514

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/DateTime/LocalDateRange.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,18 @@ final public function toISOString(): string
139139
return sprintf('%s%s, %s%s', $leftBracket, $this->from->toISOString(), $this->to->toISOString(), $rightBracket);
140140
}
141141

142-
final public function getFrom(): LocalDate
142+
/**
143+
* @return TStart
144+
*/
145+
final public function getFrom(): mixed
143146
{
144147
return $this->from;
145148
}
146149

147-
final public function getTo(): LocalDate
150+
/**
151+
* @return TEnd
152+
*/
153+
final public function getTo(): mixed
148154
{
149155
return $this->to;
150156
}

0 commit comments

Comments
 (0)