mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
Fix possible null values or not null values in some entity / string properties
This commit is contained in:
@@ -62,7 +62,7 @@ class AccompanyingPeriodWorkGoal
|
||||
* @Serializer\Groups({"accompanying_period_work:edit"})
|
||||
* @Serializer\Groups({"read"})
|
||||
*/
|
||||
private ?string $note = null;
|
||||
private string $note = '';
|
||||
|
||||
/**
|
||||
* @var Collection<Result>
|
||||
|
@@ -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