mirror of
https://github.com/rlanvin/php-rrule.git
synced 2025-02-26 15:54:14 +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 mixed $date
|
||||||
* @param int $index The index (starts at 1)
|
* @param int $index The index (starts at 1)
|
||||||
* @return DateTimeInterface|null
|
* @return \DateTimeInterface|null
|
||||||
*/
|
*/
|
||||||
public function getNthOccurrenceAfter($date, $index);
|
public function getNthOccurrenceAfter($date, $index);
|
||||||
|
|
||||||
@ -68,7 +68,7 @@ interface RRuleInterface extends \ArrayAccess, \Countable, \IteratorAggregate
|
|||||||
*
|
*
|
||||||
* @param mixed $date
|
* @param mixed $date
|
||||||
* @param int $index The index (starts at 1)
|
* @param int $index The index (starts at 1)
|
||||||
* @return DateTimeInterface|null
|
* @return \DateTimeInterface|null
|
||||||
*/
|
*/
|
||||||
public function getNthOccurrenceBefore($date, $index);
|
public function getNthOccurrenceBefore($date, $index);
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ interface RRuleInterface extends \ArrayAccess, \Countable, \IteratorAggregate
|
|||||||
*
|
*
|
||||||
* @param mixed $date
|
* @param mixed $date
|
||||||
* @param int $index 0 returns the date, positive integer returns index in the future, negative in the past
|
* @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);
|
public function getNthOccurrenceFrom($date, $index);
|
||||||
|
|
||||||
@ -102,4 +102,4 @@ interface RRuleInterface extends \ArrayAccess, \Countable, \IteratorAggregate
|
|||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function isInfinite();
|
public function isInfinite();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user