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 bf01eff commit 1dee4f8Copy full SHA for 1dee4f8
validation/custom_constraint.rst
@@ -45,7 +45,7 @@ has this default logic::
45
// in the base Symfony\Component\Validator\Constraint class
46
public function validatedBy()
47
{
48
- return \get_class($this).'Validator';
+ return static::class.'Validator';
49
}
50
51
In other words, if you create a custom ``Constraint`` (e.g. ``MyConstraint``),
0 commit comments