We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f82712e commit 4d5b4fcCopy full SHA for 4d5b4fc
validation/custom_constraint.rst
@@ -45,7 +45,7 @@ includes some simple default logic::
45
// in the base Symfony\Component\Validator\Constraint class
46
public function validatedBy()
47
{
48
- return get_class($this).'Validator';
+ return ContainsAlphanumericValidator::class;
49
}
50
51
In other words, if you create a custom ``Constraint`` (e.g. ``MyConstraint``),
0 commit comments