@@ -30,9 +30,9 @@ interface ValidatorInterface extends MetadataFactoryInterface
3030 * If no constraint is passed, the constraint
3131 * {@link \Symfony\Component\Validator\Constraints\Valid} is assumed.
3232 *
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
33+ * @param mixed $value The value to validate
34+ * @param Constraint|Constraint[] $constraints The constraint(s) to validate against
35+ * @param string|GroupSequence|array< string|GroupSequence> |null $groups The validation groups to validate. If none is given, "Default" is assumed
3636 *
3737 * @return ConstraintViolationListInterface A list of constraint violations
3838 * If the list is empty, validation
@@ -44,9 +44,9 @@ public function validate($value, $constraints = null, $groups = null);
4444 * Validates a property of an object against the constraints specified
4545 * for this property.
4646 *
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
47+ * @param object $object The object
48+ * @param string $propertyName The name of the validated property
49+ * @param string|GroupSequence|array< string|GroupSequence> |null $groups The validation groups to validate. If none is given, "Default" is assumed
5050 *
5151 * @return ConstraintViolationListInterface A list of constraint violations
5252 * If the list is empty, validation
@@ -58,10 +58,10 @@ public function validateProperty($object, string $propertyName, $groups = null);
5858 * Validates a value against the constraints specified for an object's
5959 * property.
6060 *
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
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|array< string|GroupSequence> |null $groups The validation groups to validate. If none is given, "Default" is assumed
6565 *
6666 * @return ConstraintViolationListInterface A list of constraint violations
6767 * If the list is empty, validation
0 commit comments