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

@@ -75,7 +75,7 @@ class Document implements TrackCreationInterface, TrackUpdateInterface
* min=2, max=250
* )
*/
private ?string $title = null;
private string $title = '';
/**
* @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\User")
@@ -92,7 +92,7 @@ class Document implements TrackCreationInterface, TrackUpdateInterface
return $this->date;
}
public function getDescription(): ?string
public function getDescription(): string
{
return $this->description;
}
@@ -107,7 +107,7 @@ class Document implements TrackCreationInterface, TrackUpdateInterface
return $this->template;
}
public function getTitle(): ?string
public function getTitle(): string
{
return $this->title;
}