From b6da7a8b77d7a11c3b3784a26f3f13b60a65d7c1 Mon Sep 17 00:00:00 2001 From: Georg Ringer Date: Tue, 5 Nov 2024 16:55:21 +0100 Subject: [PATCH] [TASK] Make endtime setter handle null values Resolves: #2487 --- Classes/Domain/Model/News.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Domain/Model/News.php b/Classes/Domain/Model/News.php index 75327d73f..a01f75500 100644 --- a/Classes/Domain/Model/News.php +++ b/Classes/Domain/Model/News.php @@ -35,7 +35,7 @@ class News extends AbstractEntity /** @var \DateTime */ protected $starttime; - /** @var \DateTime */ + /** @var ?\DateTime */ protected $endtime; /** @@ -1179,7 +1179,7 @@ public function getEndtime(): ?DateTime * * @param DateTime $endtime end time */ - public function setEndtime(DateTime $endtime): void + public function setEndtime($endtime): void { $this->endtime = $endtime; }