Apply rector changes to Collection typing

This commit is contained in:
2024-08-27 16:20:30 +02:00
parent 85e2466611
commit ad47804c91
31 changed files with 86 additions and 85 deletions

View File

@@ -43,9 +43,9 @@ class RecurringTask extends AbstractTask
private $occurenceWarningInterval;
/**
* @var Collection<SingleTask>
* @var Collection<int, SingleTask>
*/
#[ORM\OneToMany(targetEntity: SingleTask::class, mappedBy: 'recurringTask')]
#[ORM\OneToMany(mappedBy: 'recurringTask', targetEntity: SingleTask::class)]
private Collection $singleTasks;
public function __construct()

View File

@@ -49,9 +49,9 @@ class SingleTask extends AbstractTask
private ?\DateTime $startDate = null;
/**
* @var Collection<SingleTaskPlaceEvent>
* @var Collection<int, SingleTaskPlaceEvent>
*/
#[ORM\OneToMany(targetEntity: SingleTaskPlaceEvent::class, mappedBy: 'task', cascade: ['remove'])]
#[ORM\OneToMany(mappedBy: 'task', targetEntity: SingleTaskPlaceEvent::class, cascade: ['remove'])]
private Collection $taskPlaceEvents;
#[Serializer\Groups(['read'])]