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:
parent
2acd9950e8
commit
f7bcad3538
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user