From 5eea8715ac3e532d38f7c505fae98445311dac90 Mon Sep 17 00:00:00 2001 From: Ahmed EBEN HASSINE Date: Mon, 13 Dec 2021 15:09:12 +0100 Subject: [PATCH] typo: rename getNestedContraints to getNestedConstraints --- .../Property/Restriction/PropertySchemaOneOfRestriction.php | 2 +- .../Metadata/Property/ValidatorPropertyMetadataFactory.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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]; }