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

@@ -110,7 +110,7 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface, \Strin
private ?string $canonicalized = '';
/**
* @var Collection<ThirdPartyCategory>
* @var Collection<int, ThirdPartyCategory>
*/
#[Groups(['docgen:read', 'docgen:read:3party:parent'])]
#[ORM\ManyToMany(targetEntity: ThirdPartyCategory::class)]
@@ -119,7 +119,7 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface, \Strin
private Collection $categories;
/**
* @var Collection<Center>
* @var Collection<int, Center>
*/
#[ORM\ManyToMany(targetEntity: Center::class)]
#[ORM\JoinTable(name: 'chill_3party.party_center')]
@@ -128,10 +128,10 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface, \Strin
/**
* Contact Persons: One Institutional ThirdParty has Many Contact Persons.
*
* @var Collection<ThirdParty>
* @var Collection<int, ThirdParty>
*/
#[Assert\Valid(traverse: true)]
#[ORM\OneToMany(targetEntity: ThirdParty::class, mappedBy: 'parent', cascade: ['persist'], orphanRemoval: true)]
#[ORM\OneToMany(mappedBy: 'parent', targetEntity: ThirdParty::class, cascade: ['persist'], orphanRemoval: true)]
private Collection $children;
#[Context(normalizationContext: ['groups' => 'docgen:read'], groups: ['docgen:read:3party:parent'])]