Skip to content

Commit c8f4342

Browse files
committed
Merge branch '4.4' into 5.4
* 4.4: [Validator] Update validation.rst
2 parents 3752e27 + f8edb07 commit c8f4342

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
@@ -527,8 +527,8 @@ of the form fields::
527527
Constraint Targets
528528
------------------
529529

530-
Constraints can be applied to a class property (e.g. ``name``), a public
531-
getter method (e.g. ``getFullName()``) or an entire class. Property constraints
530+
Constraints can be applied to a class property (e.g. ``name``),
531+
a getter method (e.g. ``getFullName()``) or an entire class. Property constraints
532532
are the most common and easy to use. Getter constraints allow you to specify
533533
more complex validation rules. Finally, class constraints are intended
534534
for scenarios where you want to validate a class as a whole.
@@ -643,7 +643,7 @@ Getters
643643
~~~~~~~
644644

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

0 commit comments

Comments
 (0)