Apply 7 suggestion(s) to 1 file(s)

This commit is contained in:
Julien Fastré 2021-06-18 07:17:32 +00:00 committed by juminet
parent 8406c30c8e
commit 585a19e803

View File

@ -105,9 +105,9 @@ class Person implements HasCenterInterface
* The person's deathdate * The person's deathdate
* @var \DateTime * @var \DateTime
* *
* @ORM\Column(type="date", nullable=true) * @ORM\Column(type="date_immutable", nullable=true)
*/ */
private $deathdate; private ?\DateTimeImmutable $deathdate;
/** /**
* The person's place of birth * The person's place of birth
@ -159,7 +159,7 @@ class Person implements HasCenterInterface
* @var CommentEmbeddable * @var CommentEmbeddable
* @ORM\Embedded(class="Chill\MainBundle\Entity\Embeddable\CommentEmbeddable", columnPrefix="genderComment_") * @ORM\Embedded(class="Chill\MainBundle\Entity\Embeddable\CommentEmbeddable", columnPrefix="genderComment_")
*/ */
private $genderComment; private CommentEmbeddable $genderComment;
/** /**
* The marital status of the person * The marital status of the person
@ -183,7 +183,7 @@ class Person implements HasCenterInterface
* @var CommentEmbeddable * @var CommentEmbeddable
* @ORM\Embedded(class="Chill\MainBundle\Entity\Embeddable\CommentEmbeddable", columnPrefix="maritalStatusComment_") * @ORM\Embedded(class="Chill\MainBundle\Entity\Embeddable\CommentEmbeddable", columnPrefix="maritalStatusComment_")
*/ */
private $maritalStatusComment; private CommentEmbeddable $maritalStatusComment;
/** /**
* Contact information for contacting the person * Contact information for contacting the person
@ -279,7 +279,7 @@ class Person implements HasCenterInterface
* *
* @ORM\Column(type="boolean", options={"default" : false}) * @ORM\Column(type="boolean", options={"default" : false})
*/ */
private $acceptSMS; private ?bool $acceptSMS = null;
/** /**
* Accept receiving email * Accept receiving email
@ -287,7 +287,7 @@ class Person implements HasCenterInterface
* *
* @ORM\Column(type="boolean", options={"default" : false}) * @ORM\Column(type="boolean", options={"default" : false})
*/ */
private $acceptEmail; private ?bool $acceptEmail = null;
/** /**
* Number of children * Number of children
@ -295,7 +295,7 @@ class Person implements HasCenterInterface
* *
* @ORM\Column(type="integer", nullable=true) * @ORM\Column(type="integer", nullable=true)
*/ */
private $numberOfChildren; private ?int $numberOfChildren = null;
/** /**
* @var boolean * @var boolean