mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 19:13:49 +00:00
Rector: apply rules for doctrine code quality
This commit is contained in:
@@ -46,13 +46,11 @@ use Symfony\Component\Validator\Constraints as Assert;
|
||||
class SingleTask extends AbstractTask
|
||||
{
|
||||
/**
|
||||
* @var DateTime
|
||||
*
|
||||
* @ORM\Column(name="end_date", type="date", nullable=true)
|
||||
* @Assert\Date
|
||||
* @Serializer\Groups({"read"})
|
||||
*/
|
||||
private $endDate;
|
||||
private ?\DateTime $endDate = null;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
@@ -62,7 +60,7 @@ class SingleTask extends AbstractTask
|
||||
* @ORM\GeneratedValue(strategy="AUTO")
|
||||
* @Serializer\Groups({"read"})
|
||||
*/
|
||||
private $id;
|
||||
private ?int $id = null;
|
||||
|
||||
/**
|
||||
* @ORM\ManyToOne(
|
||||
@@ -73,7 +71,6 @@ class SingleTask extends AbstractTask
|
||||
private ?\Chill\TaskBundle\Entity\RecurringTask $recurringTask = null;
|
||||
|
||||
/**
|
||||
* @var DateTime
|
||||
*
|
||||
* @ORM\Column(name="start_date", type="date", nullable=true)
|
||||
* @Serializer\Groups({"read"})
|
||||
@@ -89,7 +86,7 @@ class SingleTask extends AbstractTask
|
||||
* message="The start date must be before warning date"
|
||||
* )
|
||||
*/
|
||||
private $startDate;
|
||||
private ?\DateTime $startDate = null;
|
||||
|
||||
/**
|
||||
* @var Collection<SingleTaskPlaceEvent>
|
||||
|
Reference in New Issue
Block a user