diff --git a/validation/custom_constraint.rst b/validation/custom_constraint.rst index 5f0740885d5..c2b4eff130a 100644 --- a/validation/custom_constraint.rst +++ b/validation/custom_constraint.rst @@ -70,7 +70,7 @@ Constraint with Private Properties ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Constraints are cached for performance reasons. To achieve this, the base -``Constraint`` class uses PHP's :phpfunction:`get_object_vars()` function, which +``Constraint`` class uses PHP's :phpfunction:`get_object_vars` function, which excludes private properties of child classes. If your constraint defines private properties, you must explicitly include them