mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
DX: fix phpstan errors
This commit is contained in:
@@ -78,15 +78,14 @@ class ParticipationOverlapValidator extends ConstraintValidator
|
||||
|
||||
if ($overlaps->hasIntersections()) {
|
||||
foreach ($overlaps->getIntersections() as [$start, $end, $ids]) {
|
||||
$msg = null === $end ? $constraint->message :
|
||||
$constraint->message;
|
||||
$msg = $constraint->message;
|
||||
|
||||
$this->context->buildViolation($msg)
|
||||
->setParameters([
|
||||
'{{ start }}' => $start->format('d-m-Y'),
|
||||
'{{ end }}' => null === $end ? null : $end->format('d-m-Y'),
|
||||
'{{ ids }}' => $ids,
|
||||
'{{ name }}' => $this->personRender->renderString($participation->getPerson(), []),
|
||||
'{{ name }}' => $this->personRender->renderString($participations[0]->getPerson(), []),
|
||||
])
|
||||
->addViolation();
|
||||
}
|
||||
|
Reference in New Issue
Block a user