mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
Fix possible null values or not null values in some entity / string properties
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user