8000 minor #7095 Also mention "hasXXX" methods as validation targets (mpdude) · symfony/symfony-docs@fcb1fdf · GitHub
[go: up one dir, main page]

Skip to content

Commit fcb1fdf

Browse files
committed
minor #7095 Also mention "hasXXX" methods as validation targets (mpdude)
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #7095). Discussion ---------- Also mention "hasXXX" methods as validation targets At least in http://symfony.com/doc/current/validation.html, "hasXXX" methods are mentioned in addition to "getXXX" and "isXXX". Commits ------- 1d91c30 Also mention "hassers"
2 parents a0cea04 + 1d91c30 commit fcb1fdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/validator/metadata.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ Getters
3636
-------
3737

3838
Constraints can also be applied to the value returned by any public *getter*
39-
method, which are the methods whose names start with ``get`` or ``is``. This
40-
feature allows to validate your objects dynamically.
39+
method, which are the methods whose names start with ``get``, ``has`` or ``is``.
40+
This feature allows to validate your objects dynamically.
4141

4242
Suppose that, for security reasons, you want to validate that a password field
4343
doesn't match the first name of the user. First, create a public method called

0 commit comments

Comments
 (0)
0