Skip to content

Commit

Permalink
[TASK] Make endtime setter handle null values
Browse files Browse the repository at this point in the history
Resolves: #2487
  • Loading branch information
georgringer committed Nov 5, 2024
1 parent 317423d commit b6da7a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Domain/Model/News.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class News extends AbstractEntity
/** @var \DateTime */
protected $starttime;

/** @var \DateTime */
/** @var ?\DateTime */
protected $endtime;

/**
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit b6da7a8

Please sign in to comment.