From eeaf4ccc7e477db6aecc5dab3b4921e04759a110 Mon Sep 17 00:00:00 2001 From: Uwe Kleinmann Date: Fri, 7 Nov 2025 15:16:52 +0100 Subject: [PATCH] Make public property requirement clearer for constraint options --- validation/custom_constraint.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validation/custom_constraint.rst b/validation/custom_constraint.rst index cd5197c860e..ffe2a3560f5 100644 --- a/validation/custom_constraint.rst +++ b/validation/custom_constraint.rst @@ -266,7 +266,7 @@ You can use custom validators like the ones provided by Symfony itself: } } -If your constraint contains options, then they should be public properties +If your constraint contains options, then they must be public properties on the custom Constraint class you created earlier. These options can be configured like options on core Symfony constraints.