ExecutionContextInterface deprecated::addViolation()

addViolation(string $message, array $params = array(), mixed $invalidValue = null, int|null $plural = null, int|null $code = null)

Adds a violation at the current node of the validation graph.

Note: the parameters $invalidValue, $plural and $code are deprecated since version 2.5 and will be removed in 3.0.

Parameters

string $message The error message
array $params The parameters substituted in the error message
mixed $invalidValue The invalid, validated value
int|null $plural The number to use to pluralize of the message
int|null $code The violation code
doc_Symfony
2016-10-28 06:15:51
Comments
Leave a Comment

Please login to continue.