Skip to content

Commit

Permalink
docs: use attribute for group sequence example (#2078)
Browse files Browse the repository at this point in the history
  • Loading branch information
samnela authored Dec 10, 2024
1 parent 1e3461e commit d9f2099
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions symfony/validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,9 @@ class Greeting
* @var A nice person
*
* I want this "second" validation to be executed after the "first" one even though I wrote them in this order.
* @One(groups={"second"})
* @Two(groups={"first"})
*/
#[One(groups: ['second'])]
#[Two(groups: ['first'])]
#[ORM\Column]
public string $name = '';

Expand Down

0 comments on commit d9f2099

Please sign in to comment.