From b9101159ef90981389626edf050837d58a24cd8e Mon Sep 17 00:00:00 2001 From: Samuel NELA Date: Fri, 29 Nov 2024 11:36:59 +0100 Subject: [PATCH] docs: use attribute for group sequence example --- symfony/validation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/symfony/validation.md b/symfony/validation.md index ec7eaa6dfd7..af19891b52b 100644 --- a/symfony/validation.md +++ b/symfony/validation.md @@ -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 = '';