Fix argument type hints

This commit is contained in:
Yonas Habteab 2023-08-17 14:10:04 +02:00 committed by raviks789
parent ffe84507f9
commit a965b5c44b
1 changed files with 3 additions and 3 deletions

View File

@ -104,7 +104,7 @@ class AnnouncementCookie extends Cookie
/** /**
* Get the timestamp of the next active announcement * Get the timestamp of the next active announcement
* *
* @return int * @return ?int
*/ */
public function getNextActive() public function getNextActive()
{ {
@ -114,11 +114,11 @@ class AnnouncementCookie extends Cookie
/** /**
* Set the timestamp of the next active announcement * Set the timestamp of the next active announcement
* *
* @param int $nextActive * @param ?int $nextActive
* *
* @return $this * @return $this
*/ */
public function setNextActive($nextActive) public function setNextActive(?int $nextActive)
{ {
$this->nextActive = $nextActive; $this->nextActive = $nextActive;
return $this; return $this;