namespace Symfony\Component\Validator\Validator;
use Symfony\Component\Validator\Constraint;
+use Symfony\Component\Validator\Constraints\GroupSequence;
use Symfony\Component\Validator\ConstraintViolationListInterface;
use Symfony\Component\Validator\Context\ExecutionContextInterface;
use Symfony\Component\Validator\Mapping\Factory\MetadataFactoryInterface;
* If no constraint is passed, the constraint
* {@link \Symfony\Component\Validator\Constraints\Valid} is assumed.
*
- * @param mixed $value The value to validate
- * @param Constraint|Constraint[] $constraints The constraint(s) to validate
- * against
- * @param array|null $groups The validation groups to
- * validate. If none is given,
- * "Default" is assumed
+ * @param mixed $value The value to validate
+ * @param Constraint|Constraint[] $constraints The constraint(s) to validate against
+ * @param string|GroupSequence|(string|GroupSequence)[]|null $groups The validation groups to validate. If none is given, "Default" is assumed
*
* @return ConstraintViolationListInterface A list of constraint violations
* If the list is empty, validation
* Validates a property of an object against the constraints specified
* for this property.
*
- * @param object $object The object
- * @param string $propertyName The name of the validated property
- * @param array|null $groups The validation groups to validate. If
- * none is given, "Default" is assumed
+ * @param object $object The object
+ * @param string $propertyName The name of the validated property
+ * @param string|GroupSequence|(string|GroupSequence)[]|null $groups The validation groups to validate. If none is given, "Default" is assumed
*
* @return ConstraintViolationListInterface A list of constraint violations
* If the list is empty, validation
* Validates a value against the constraints specified for an object's
* property.
*
- * @param object|string $objectOrClass The object or its class name
- * @param string $propertyName The name of the property
- * @param mixed $value The value to validate against the
- * property's constraints
- * @param array|null $groups The validation groups to validate. If
- * none is given, "Default" is assumed
+ * @param object|string $objectOrClass The object or its class name
+ * @param string $propertyName The name of the property
+ * @param mixed $value The value to validate against the property's constraints
+ * @param string|GroupSequence|(string|GroupSequence)[]|null $groups The validation groups to validate. If none is given, "Default" is assumed
*
* @return ConstraintViolationListInterface A list of constraint violations
* If the list is empty, validation