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