Skip to content

Commit

Permalink
Use attributes instead of annotations (#310)
Browse files Browse the repository at this point in the history
This will:
- title
  • Loading branch information
jskowronski39 authored Jan 8, 2024
2 parents afabe10 + 2c897f0 commit cae15b2
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 cae15b2

Please sign in to comment.