Skip to content

Commit

Permalink
Use attributes instead of annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
jskowronski39 committed Jan 7, 2024
1 parent c8e7954 commit a0e8a05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/Form/ModList/Dto/ModListFormDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 1 addition & 3 deletions src/Form/User/Dto/UserFormDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a0e8a05

Please sign in to comment.