Skip to content

Commit 5650449

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: [Validator] Update validation.rst
2 parents 3829ff1 + c8f4342 commit 5650449

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)