Skip to content

Commit cd94a3e

Browse files
committed
Merge branch '6.0' into 6.1
* 6.0: [Validator] Update validation.rst
2 parents e787633 + 5650449 commit cd94a3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

validation.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -519,8 +519,8 @@ of the form fields::
519519
Constraint Targets
520520
------------------
521521

522-
Constraints can be applied to a class property (e.g. ``name``), a public
523-
getter method (e.g. ``getFullName()``) or an entire class. Property constraints
522+
Constraints can be applied to a class property (e.g. ``name``),
523+
a getter method (e.g. ``getFullName()``) or an entire class. Property constraints
524524
are the most common and easy to use. Getter constraints allow you to specify
525525
more complex validation rules. Finally, class constraints are intended
526526
for scenarios where you want to validate a class as a whole.
@@ -635,7 +635,7 @@ Getters
635635
~~~~~~~
636636

637637
Constraints can also be applied to the return value of a method. Symfony
638-
allows you to add a constraint to any public method whose name starts with
638+
allows you to add a constraint to any private, protected or public method whose name starts with
639639
"get", "is" or "has". In this guide, these types of methods are referred to
640640
as "getters".
641641

0 commit comments

Comments
 (0)