1
0
mirror of https://github.com/rlanvin/php-rrule.git synced 2024-11-28 05:24:10 +01:00

Fix namespace on return type

phpstan interprets the namespace RRule and so turn the return type into RRule\DateTimeInterface which of course doesn't exist.
This commit is contained in:
Craig Heydenburg 2023-02-22 03:36:35 -05:00 committed by GitHub
parent 2acd9950e8
commit f7bcad3538
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@ interface RRuleInterface extends \ArrayAccess, \Countable, \IteratorAggregate
*
* @param mixed $date
* @param int $index The index (starts at 1)
* @return DateTimeInterface|null
* @return \DateTimeInterface|null
*/
public function getNthOccurrenceAfter($date, $index);
@ -68,7 +68,7 @@ interface RRuleInterface extends \ArrayAccess, \Countable, \IteratorAggregate
*
* @param mixed $date
* @param int $index The index (starts at 1)
* @return DateTimeInterface|null
* @return \DateTimeInterface|null
*/
public function getNthOccurrenceBefore($date, $index);
@ -77,7 +77,7 @@ interface RRuleInterface extends \ArrayAccess, \Countable, \IteratorAggregate
*
* @param mixed $date
* @param int $index 0 returns the date, positive integer returns index in the future, negative in the past
* @return DateTimeInterface|null
* @return \DateTimeInterface|null
*/
public function getNthOccurrenceFrom($date, $index);
@ -102,4 +102,4 @@ interface RRuleInterface extends \ArrayAccess, \Countable, \IteratorAggregate
* @return bool
*/
public function isInfinite();
}
}