Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 858cabc

Browse filesBrowse files
[Validator] Remove annotation
1 parent 367bf3c commit 858cabc
Copy full SHA for 858cabc

File tree

1 file changed

+3
-3
lines changed
Filter options

1 file changed

+3
-3
lines changed

‎validation/custom_constraint.rst

Copy file name to clipboardExpand all lines: validation/custom_constraint.rst
+3-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.