@@ -32,22 +32,22 @@ class ConstraintViolation implements ConstraintViolationInterface
32
32
/**
33
33
* Creates a new constraint violation.
34
34
*
35
- * @param string $message The violation message
36
- * @param string $messageTemplate The raw violation message
37
- * @param array $parameters The parameters to substitute in the
38
- * raw violation message
39
- * @param mixed $root The value originally passed to the
40
- * validator
41
- * @param string $propertyPath The property path from the root
42
- * value to the invalid value
43
- * @param mixed $invalidValue The invalid value that caused this
44
- * violation
45
- * @param int|null $plural The number for determining the plural
46
- * form when translating the message
47
- * @param mixed $code The error code of the violation
48
- * @param Constraint|null $constraint The constraint whose validation
49
- * caused the violation
50
- * @param mixed $cause The cause of the violation
35
+ * @param string|\Stringable $message The violation message as a string or a stringable object
36
+ * @param string $messageTemplate The raw violation message
37
+ * @param array $parameters The parameters to substitute in the
38
+ * raw violation message
39
+ * @param mixed $root The value originally passed to the
40
+ * validator
41
+ * @param string $propertyPath The property path from the root
42
+ * value to the invalid value
43
+ * @param mixed $invalidValue The invalid value that caused this
44
+ * violation
45
+ * @param int|null $plural The number for determining the plural
46
+ * form when translating the message
47
+ * @param mixed $code The error code of the violation
48
+ * @param Constraint|null $constraint The constraint whose validation
49
+ * caused the violation
50
+ * @param mixed $cause The cause of the violation
51
51
*/
52
52
public function __construct ($ message , $ messageTemplate , array $ parameters , $ root , $ propertyPath , $ invalidValue , $ plural = null , $ code = null , Constraint $ constraint = null , $ cause = null )
53
53
{
0 commit comments