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

@@ -49,7 +49,7 @@ class Charge extends AbstractElement implements HasCentersInterface
/**
* @ORM\Column(name="help", type="string", nullable=true)
*/
private string $help = self::HELP_NOT_RELEVANT;
private ?string $help = self::HELP_NOT_RELEVANT;
/**
* @ORM\Column(name="id", type="integer")

View File

@@ -76,7 +76,7 @@ class ChargeKind
return $this->isActive;
}
public function getKind(): ?string
public function getKind(): string
{
return $this->kind;
}
@@ -98,7 +98,7 @@ class ChargeKind
return $this;
}
public function setKind(?string $kind): self
public function setKind(string $kind): self
{
$this->kind = $kind;