Skip to content

Commit d9f2099

Browse files
authored
docs: use attribute for group sequence example (#2078)
1 parent 1e3461e commit d9f2099

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

symfony/validation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,9 @@ class Greeting
347347
* @var A nice person
348348
*
349349
* I want this "second" validation to be executed after the "first" one even though I wrote them in this order.
350-
* @One(groups={"second"})
351-
* @Two(groups={"first"})
352350
*/
351+
#[One(groups: ['second'])]
352+
#[Two(groups: ['first'])]
353353
#[ORM\Column]
354354
public string $name = '';
355355

0 commit comments

Comments
 (0)