8000 Updated the example of PHP attributes · symfony/symfony-docs@fd8791b · GitHub
[go: up one dir, main page]

Skip to content

Commit fd8791b

Browse files
committed
Updated the example of PHP attributes
1 parent 34bf140 commit fd8791b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

reference/constraints/Type.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ This will check if ``emailAddress`` is an instance of ``Symfony\Component\Mime\A
6464
// src/Entity/Author.php
6565
namespace App\Entity;
6666
67-
use Ramsey\Uuid\UuidInterface;
67+
use Symfony\Component\Mime\Address;
6868
use Symfony\Component\Validator\Constraints as Assert;
6969
7070
class Author
7171
{
72-
#[Assert\Type(UuidInterface::class)]
73-
protected $id;
72+
#[Assert\Type(Address::class)]
73+
protected $emailAddress;
7474
7575
#[Assert\Type('string')]
7676
protected $firstName;

0 commit comments

Comments
 (0)
0