diff --git a/src/Bridge/Symfony/Validator/Metadata/Property/Restriction/PropertySchemaOneOfRestriction.php b/src/Bridge/Symfony/Validator/Metadata/Property/Restriction/PropertySchemaOneOfRestriction.php index 7472ddec22c..69f8cc05713 100644 --- a/src/Bridge/Symfony/Validator/Metadata/Property/Restriction/PropertySchemaOneOfRestriction.php +++ b/src/Bridge/Symfony/Validator/Metadata/Property/Restriction/PropertySchemaOneOfRestriction.php @@ -42,7 +42,7 @@ public function __construct(iterable $restrictionsMetadata = []) */ public function create(Constraint $constraint, PropertyMetadata $propertyMetadata): array { - $oneOfConstraints = $constraint->getNestedContraints(); + $oneOfConstraints = $constraint->getNestedConstraints(); $oneOfRestrictions = []; foreach ($oneOfConstraints as $oneOfConstraint) { diff --git a/src/Bridge/Symfony/Validator/Metadata/Property/ValidatorPropertyMetadataFactory.php b/src/Bridge/Symfony/Validator/Metadata/Property/ValidatorPropertyMetadataFactory.php index 0d288062ef8..b99abb88bb5 100644 --- a/src/Bridge/Symfony/Validator/Metadata/Property/ValidatorPropertyMetadataFactory.php +++ b/src/Bridge/Symfony/Validator/Metadata/Property/ValidatorPropertyMetadataFactory.php @@ -172,7 +172,7 @@ private function getPropertyConstraints( foreach ($validatorPropertyMetadata->findConstraints($validationGroup) as $propertyConstraint) { if ($propertyConstraint instanceof Sequentially) { - $constraints[] = $propertyConstraint->getNestedContraints(); + $constraints[] = $propertyConstraint->getNestedConstraints(); } else { $constraints[] = [$propertyConstraint]; }