Skip to content

Commit baeae98

Browse files
committed
Fixes thanks to @xabbuh
1 parent 62f8ffe commit baeae98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cookbook/validation/custom_constraint.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ The validator class is also simple, and only has one required method ``validate(
8484

8585
Inside ``validate``, you don't need to return a value. Instead, you add violations
8686
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`
87+
if it causes no violations. The ``buildViolation`` method takes the error
88+
message as its argument and returns an instance of
89+
:class:`Symfony\\Component\\Validator\\Violation\\ConstraintViolationBuilderInterface`.
9090
The ``addViolation`` method call finally adds the violation to the context.
9191

9292
.. versionadded:: 2.5

0 commit comments

Comments
 (0)