@@ -30,9 +30,9 @@ interface ValidatorInterface extends MetadataFactoryInterface
30
30
* If no constraint is passed, the constraint
31
31
* {@link \Symfony\Component\Validator\Constraints\Valid} is assumed.
32
32
*
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
36
36
*
37
37
* @return ConstraintViolationListInterface A list of constraint violations
38
38
* If the list is empty, validation
@@ -44,9 +44,9 @@ public function validate($value, $constraints = null, $groups = null);
44
44
* Validates a property of an object against the constraints specified
45
45
* for this property.
46
46
*
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
50
50
*
51
51
* @return ConstraintViolationListInterface A list of constraint violations
52
52
* If the list is empty, validation
@@ -58,10 +58,10 @@ public function validateProperty($object, string $propertyName, $groups = null);
58
58
* Validates a value against the constraints specified for an object's
59
59
* property.
60
60
*
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
65
65
*
66
66
* @return ConstraintViolationListInterface A list of constraint violations
67
67
* If the list is empty, validation
0 commit comments