DX: fix some phpstan issues and add test for ParticipationOverlapValidator.php

This commit is contained in:
2023-02-07 22:11:39 +01:00
parent 70871176fc
commit afd2235254
5 changed files with 118 additions and 4 deletions

View File

@@ -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) {