Skip to content

Commit 858cabc

Browse files
[Validator] Remove annotation
1 parent 367bf3c commit 858cabc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

validation/custom_constraint.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)