From f8b97b96f45887a45a1828cd7a4474ebe540a9bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 17 Jun 2021 14:57:16 +0200 Subject: [PATCH] do not use arrayAccess for Collection in validator --- .../Household/HouseholdMembershipSequentialValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillPersonBundle/Validator/Constraints/Household/HouseholdMembershipSequentialValidator.php b/src/Bundle/ChillPersonBundle/Validator/Constraints/Household/HouseholdMembershipSequentialValidator.php index 87b74f784..d1566d05b 100644 --- a/src/Bundle/ChillPersonBundle/Validator/Constraints/Household/HouseholdMembershipSequentialValidator.php +++ b/src/Bundle/ChillPersonBundle/Validator/Constraints/Household/HouseholdMembershipSequentialValidator.php @@ -35,7 +35,7 @@ class HouseholdMembershipSequentialValidator extends ConstraintValidator return; } - $covers = new DateRangeCovering(1, $participations[0] + $covers = new DateRangeCovering(1, $participations->first() ->getStartDate()->getTimezone()); foreach ($participations as $k => $p) {