File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,14 +31,14 @@ First you need to create a Constraint class and extend :class:`Symfony\\Componen
3131 public string $mode = 'strict';
3232 }
3333
34- Add ``@Annotation `` or `` #[\Attribute] `` to the constraint class if you want to
35- use it as an annotation/ attribute in other classes.
34+ Add ``#[\Attribute] `` to the constraint class if you want to
35+ use it as an attribute in other classes.
3636
3737.. versionadded :: 6.1
3838
3939 The ``#[HasNamedArguments] `` attribute was introduced in Symfony 6.1.
4040
41- You can use ``#[HasNamedArguments] `` or `` getRequiredOptions() `` to make some constraint options required::
41+ You can use ``#[HasNamedArguments] `` to make some constraint options required::
4242
4343 // src/Validator/ContainsAlphanumeric.php
4444 namespace App\Validator;
You can’t perform that action at this time.
0 commit comments