mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
fix assertion of type.
https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/266
This commit is contained in:
parent
2343a4a334
commit
f9b514c869
@ -36,7 +36,7 @@ class HouseholdMembershipSequentialValidator extends ConstraintValidator
|
|||||||
public function validate($person, Constraint $constraint)
|
public function validate($person, Constraint $constraint)
|
||||||
{
|
{
|
||||||
if (!$person instanceof Person) {
|
if (!$person instanceof Person) {
|
||||||
throw new UnexpectedTypeException($constraint, Person::class);
|
throw new UnexpectedTypeException($person, Person::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
$participations = $person->getHouseholdParticipationsShareHousehold();
|
$participations = $person->getHouseholdParticipationsShareHousehold();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user