From a965b5c44bc53852fe3e7246c9eaab8715dadfac Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Thu, 17 Aug 2023 14:10:04 +0200 Subject: [PATCH] Fix argument type hints --- library/Icinga/Web/Announcement/AnnouncementCookie.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/Icinga/Web/Announcement/AnnouncementCookie.php b/library/Icinga/Web/Announcement/AnnouncementCookie.php index f4398ba3a..6d2387283 100644 --- a/library/Icinga/Web/Announcement/AnnouncementCookie.php +++ b/library/Icinga/Web/Announcement/AnnouncementCookie.php @@ -104,7 +104,7 @@ class AnnouncementCookie extends Cookie /** * Get the timestamp of the next active announcement * - * @return int + * @return ?int */ public function getNextActive() { @@ -114,11 +114,11 @@ class AnnouncementCookie extends Cookie /** * Set the timestamp of the next active announcement * - * @param int $nextActive + * @param ?int $nextActive * * @return $this */ - public function setNextActive($nextActive) + public function setNextActive(?int $nextActive) { $this->nextActive = $nextActive; return $this;