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; }