1212namespace Symfony \Component \Validator \Validator ;
1313
1414use Symfony \Component \Validator \Constraint ;
15+ use Symfony \Component \Validator \Constraints \GroupSequence ;
1516use Symfony \Component \Validator \ConstraintViolationListInterface ;
1617use Symfony \Component \Validator \Context \ExecutionContextInterface ;
1718use Symfony \Component \Validator \Mapping \Factory \MetadataFactoryInterface ;
@@ -29,12 +30,9 @@ interface ValidatorInterface extends MetadataFactoryInterface
2930 * If no constraint is passed, the constraint
3031 * {@link \Symfony\Component\Validator\Constraints\Valid} is assumed.
3132 *
32- * @param mixed $value The value to validate
33- * @param Constraint|Constraint[] $constraints The constraint(s) to validate
34- * against
35- * @param array|null $groups The validation groups to
36- * validate. If none is given,
37- * "Default" is assumed
33+ * @param mixed $value The value to validate
34+ * @param Constraint|Constraint[] $constraints The constraint(s) to validate against
35+ * @param string|GroupSequence|(string|GroupSequence)[]|null $groups The validation groups to validate. If none is given, "Default" is assumed
3836 *
3937 * @return ConstraintViolationListInterface A list of constraint violations
4038 * If the list is empty, validation
@@ -46,10 +44,9 @@ public function validate($value, $constraints = null, $groups = null);
4644 * Validates a property of an object against the constraints specified
4745 * for this property.
4846 *
49- * @param object $object The object
50- * @param string $propertyName The name of the validated property
51- * @param array|null $groups The validation groups to validate. If
52- * none is given, "Default" is assumed
47+ * @param object $object The object
48+ * @param string $propertyName The name of the validated property
49+ * @param string|GroupSequence|(string|GroupSequence)[]|null $groups The validation groups to validate. If none is given, "Default" is assumed
5350 *
5451 * @return ConstraintViolationListInterface A list of constraint violations
5552 * If the list is empty, validation
@@ -61,12 +58,10 @@ public function validateProperty($object, $propertyName, $groups = null);
6158 * Validates a value against the constraints specified for an object's
6259 * property.
6360 *
64- * @param object|string $objectOrClass The object or its class name
65- * @param string $propertyName The name of the property
66- * @param mixed $value The value to validate against the
67- * property's constraints
68- * @param array|null $groups The validation groups to validate. If
69- * none is given, "Default" is assumed
61+ * @param object|string $objectOrClass The object or its class name
62+ * @param string $propertyName The name of the property
63+ * @param mixed $value The value to validate against the property's constraints
64+ * @param string|GroupSequence|(string|GroupSequence)[]|null $groups The validation groups to validate. If none is given, "Default" is assumed
7065 *
7166 * @return ConstraintViolationListInterface A list of constraint violations
7267 * If the list is empty, validation
0 commit comments