Fix possible null values or not null values in some entity / string properties

This commit is contained in:
2023-10-17 23:15:06 +02:00
parent d54d34be7c
commit 9ec5a633ad
10 changed files with 30 additions and 29 deletions

View File

@@ -49,7 +49,7 @@ class Comment implements TrackCreationInterface, TrackUpdateInterface
*
* @Assert\NotNull
*/
private ?string $content = null;
private string $content = '';
/**
* @ORM\Column(type="datetime")
@@ -99,7 +99,7 @@ class Comment implements TrackCreationInterface, TrackUpdateInterface
return $this->accompanyingPeriod;
}
public function getContent(): ?string
public function getContent(): string
{
return $this->content;
}