From f9b514c8692fbab5e273611852e8c22e2c1ef7f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 7 Feb 2022 11:22:35 +0100 Subject: [PATCH] fix assertion of type. https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/266 --- .../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 89a9ba9a9..c357cb138 100644 --- a/src/Bundle/ChillPersonBundle/Validator/Constraints/Household/HouseholdMembershipSequentialValidator.php +++ b/src/Bundle/ChillPersonBundle/Validator/Constraints/Household/HouseholdMembershipSequentialValidator.php @@ -36,7 +36,7 @@ class HouseholdMembershipSequentialValidator extends ConstraintValidator public function validate($person, Constraint $constraint) { if (!$person instanceof Person) { - throw new UnexpectedTypeException($constraint, Person::class); + throw new UnexpectedTypeException($person, Person::class); } $participations = $person->getHouseholdParticipationsShareHousehold();