mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-26 00:24:59 +00:00
Fix possible null values or not null values in some entity / string properties
This commit is contained in:
@@ -37,14 +37,14 @@ class PersonAltName
|
||||
*
|
||||
* @Groups({"write"})
|
||||
*/
|
||||
private ?string $key = null;
|
||||
private string $key = '';
|
||||
|
||||
/**
|
||||
* @ORM\Column(name="label", type="text")
|
||||
*
|
||||
* @Groups({"write"})
|
||||
*/
|
||||
private ?string $label = null;
|
||||
private string $label = '';
|
||||
|
||||
/**
|
||||
* @ORM\ManyToOne(
|
||||
@@ -92,13 +92,11 @@ class PersonAltName
|
||||
/**
|
||||
* Set key.
|
||||
*
|
||||
* @param string $key
|
||||
*
|
||||
* @return PersonAltName
|
||||
*/
|
||||
public function setKey($key)
|
||||
public function setKey(?string $key)
|
||||
{
|
||||
$this->key = $key;
|
||||
$this->key = (string) $key;
|
||||
|
||||
return $this;
|
||||
}
|
||||
@@ -106,13 +104,11 @@ class PersonAltName
|
||||
/**
|
||||
* Set label.
|
||||
*
|
||||
* @param string $label
|
||||
*
|
||||
* @return PersonAltName
|
||||
*/
|
||||
public function setLabel($label)
|
||||
public function setLabel(?string $label)
|
||||
{
|
||||
$this->label = $label;
|
||||
$this->label = (string) $label;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
Reference in New Issue
Block a user