Skip to content

Commit aff8564

Browse files
committed
Align @return annotations for getEndDate and getStartDate methods with updated PHP core documentation.
1 parent aa15493 commit aff8564

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

date/date_c.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1554,31 +1554,24 @@ public function getDateInterval(): DateInterval {}
15541554

15551555
/**
15561556
* Gets the end date
1557-
* @return DateTimeInterface|null Returns null if the DatePeriod does not have an end date. For
1557+
* @return TEnd Returns null if the DatePeriod does not have an end date. For
15581558
* example, when initialized with the recurrences parameter, or the isostr parameter without an
15591559
* end date. Returns a DateTimeImmutable object when the DatePeriod is initialized with a
15601560
* DateTimeImmutable object as the end parameter. Returns a cloned DateTime object representing
15611561
* the end date otherwise.
15621562
* @link https://php.net/manual/en/dateperiod.getenddate.php
15631563
* @since 5.6
1564-
* @return TEnd Returns null if the DatePeriod does not have an end date. For example, when
1565-
* initialized with the recurrences parameter, or the isostr parameter without an end date.
1566-
* Returns a DateTimeImmutable object when the DatePeriod is initialized with a
1567-
* DateTimeImmutable object as the end parameter. Returns a cloned DateTime object representing
1568-
* the end date otherwise.
15691564
*/
15701565
#[TentativeType]
15711566
public function getEndDate(): ?DateTimeInterface {}
15721567

15731568
/**
15741569
* Gets the start date
1575-
* @return DateTimeInterface Returns a DateTimeImmutable object when the DatePeriod is
1570+
* @return TDate Returns a DateTimeImmutable object when the DatePeriod is
15761571
* initialized with a DateTimeImmutable object as the start parameter. Returns a DateTime object
15771572
* otherwise.
15781573
* @link https://php.net/manual/en/dateperiod.getstartdate.php
15791574
* @since 5.6
1580-
* @return TDate Returns a DateTimeImmutable object when the DatePeriod is initialized with a
1581-
* DateTimeImmutable object as the start parameter. Returns a DateTime object otherwise.
15821575
*/
15831576
#[TentativeType]
15841577
public function getStartDate(): DateTimeInterface {}

0 commit comments

Comments
 (0)