Fixed nullable content for NewsItem in setContent signature #392

This commit is contained in:
nobohan
2025-06-19 17:53:33 +02:00
parent bdf1cf71ba
commit af74f7860b
2 changed files with 9 additions and 2 deletions

View File

@@ -70,9 +70,9 @@ class NewsItem implements TrackCreationInterface, TrackUpdateInterface
return $this->content;
}
public function setContent(string $content): void
public function setContent(string|null $content): void
{
$this->content = $content;
$this->content = (string) $content;
}
public function getStartDate(): ?\DateTimeImmutable