diff --git a/src/Form/ModList/Dto/ModListFormDto.php b/src/Form/ModList/Dto/ModListFormDto.php index 90d37190..e3e72e3c 100644 --- a/src/Form/ModList/Dto/ModListFormDto.php +++ b/src/Form/ModList/Dto/ModListFormDto.php @@ -15,9 +15,7 @@ use Ramsey\Uuid\UuidInterface; use Symfony\Component\Validator\Constraints as Assert; -/** - * @UniqueModListName(errorPath="name") - */ +#[UniqueModListName(errorPath: 'name')] class ModListFormDto extends AbstractFormDto { protected ?UuidInterface $id = null; diff --git a/src/Form/User/Dto/UserFormDto.php b/src/Form/User/Dto/UserFormDto.php index 97d606b2..4affbe59 100644 --- a/src/Form/User/Dto/UserFormDto.php +++ b/src/Form/User/Dto/UserFormDto.php @@ -10,9 +10,7 @@ use App\Validator\User\UniqueUserSteamId; use Ramsey\Uuid\UuidInterface; -/** - * @UniqueUserSteamId(errorPath="steamId") - */ +#[UniqueUserSteamId(errorPath: 'steamId')] class UserFormDto extends AbstractFormDto { protected ?UuidInterface $id = null;