File tree 1 file changed +3
-3
lines changed
Filter options
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
31
31
public string $mode = 'strict';
32
32
}
33
33
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.
36
36
37
37
.. versionadded :: 6.1
38
38
39
39
The ``#[HasNamedArguments] `` attribute was introduced in Symfony 6.1.
40
40
41
- You can use ``#[HasNamedArguments] `` or `` getRequiredOptions() `` to make some constraint options required::
41
+ You can use ``#[HasNamedArguments] `` to make some constraint options required::
42
42
43
43
// src/Validator/ContainsAlphanumeric.php
44
44
namespace App\Validator;
You can’t perform that action at this time.
0 commit comments