Rector: apply rules for doctrine code quality

This commit is contained in:
2023-08-31 10:35:52 +02:00
parent bc9b7b1776
commit e4e52234ad
32 changed files with 74 additions and 92 deletions

View File

@@ -42,10 +42,9 @@ class Report implements HasCenterInterface, HasScopeInterface
private ?\Chill\CustomFieldsBundle\Entity\CustomFieldsGroup $cFGroup = null;
/**
* @var DateTime
* @ORM\Column(type="datetime")
*/
private $date;
private ?\DateTime $date = null;
/**
* @var int
@@ -54,7 +53,7 @@ class Report implements HasCenterInterface, HasScopeInterface
* @ORM\Column(name="id", type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
private ?int $id = null;
/**
* @ORM\ManyToOne(targetEntity="Chill\PersonBundle\Entity\Person")
@@ -101,10 +100,8 @@ class Report implements HasCenterInterface, HasScopeInterface
/**
* Get date.
*
* @return DateTime
*/
public function getDate()
public function getDate(): ?DateTime
{
return $this->date;
}