fix phpstan issues with never-writter id properties

This commit is contained in:
Julien Fastré 2023-09-27 16:21:37 +02:00
parent 7eec366292
commit 2e5954f6fd
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
3 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ class AccompanyingCourseDocument extends Document implements HasScopesInterface,
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
private ?int $id = null;
public function getCenters(): ?iterable
{

View File

@ -28,7 +28,7 @@ class PersonDocument extends Document implements HasCenterInterface, HasScopeInt
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
private ?int $id = null;
/**
* @ORM\ManyToOne(targetEntity="Chill\PersonBundle\Entity\Person")

View File

@ -38,7 +38,7 @@ class SingleTaskPlaceEvent extends AbstractTaskPlaceEvent
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
private ?int $id = null;
/**
* @var SingleTask