mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
DX: fix some phpstan issues and add test for ParticipationOverlapValidator.php
This commit is contained in:
@@ -61,9 +61,9 @@ class ParticipationOverlapValidator extends ConstraintValidator
|
||||
throw new UnexpectedTypeException($participation, AccompanyingPeriodParticipation::class);
|
||||
}
|
||||
|
||||
$personId = $participation->getPerson()->getId();
|
||||
$hashPerson = spl_object_hash($participation->getPerson());
|
||||
|
||||
$participationList[$personId][] = $participation;
|
||||
$participationList[$hashPerson][] = $participation;
|
||||
}
|
||||
|
||||
foreach ($participationList as $group) {
|
||||
|
Reference in New Issue
Block a user