Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf97ba7a

Browse files
committed
Fixes thanks to@xabbuh
1 parent279d8d6 commitf97ba7a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎cookbook/validation/custom_constraint.rst‎

Lines changed: 3 additions & 3 deletions
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``methodtakes the error
88+
messageas 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)

[8]ページ先頭

©2009-2025 Movatter.jp