We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent62f8ffe commitbaeae98Copy full SHA for baeae98
cookbook/validation/custom_constraint.rst
@@ -84,9 +84,9 @@ The validator class is also simple, and only has one required method ``validate(
84
85
Inside ``validate``, you don't need to return a value. Instead, you add violations
86
to the validator's ``context`` property and a value will be considered valid
87
-if it causes no violations. The ``buildViolation`` takes the error message
88
-as its argument and returns an instance of
89
-:class:`Symfony\\Component\\Validator\\Violation\\ConstraintViolationBuilder`
+if it causes no violations. The ``buildViolation``methodtakes the error
+messageas its argument and returns an instance of
+:class:`Symfony\\Component\\Validator\\Violation\\ConstraintViolationBuilderInterface`.
90
The ``addViolation`` method call finally adds the violation to the context.
91
92
..versionadded::2.5