Skip to content

Commit d92a923

Browse files
committed
minor #17476 [Validator] getRequiredOptions() is no longer used in the example (mdoutreluingne)
This PR was merged into the 6.1 branch. Discussion ---------- [Validator] `getRequiredOptions()` is no longer used in the example Following #17468 I forgot to delete the method `getRequiredOptions()` as it is no longer used in the example and I have also removed the ``@Annotation`` because it was also no longer used in the example. Commits ------- 858cabc [Validator] Remove annotation
2 parents 37e288e + 858cabc commit d92a923

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)