Skip to content

Commit f37c6be

Browse files
ntnchqjaviereguiluz
authored andcommitted
Update Type.rst
Change Ramsey to symfony/uid
1 parent 36421ad commit f37c6be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/constraints/Type.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Validator :class:`Symfony\\Component\\Validator\\Constraints\\TypeValidator`
1818
Basic Usage
1919
-----------
2020

21-
This will check if ``id`` is an instance of ``Ramsey\Uuid\UuidInterface``,
21+
This will check if ``id`` is an instance of ``Symfony\Component\Uid\Uid``,
2222
``firstName`` is of type ``string`` (using :phpfunction:`is_string` PHP function),
2323
``age`` is an ``integer`` (using :phpfunction:`is_int` PHP function) and
2424
``accessCode`` contains either only letters or only digits (using
@@ -36,7 +36,7 @@ This will check if ``id`` is an instance of ``Ramsey\Uuid\UuidInterface``,
3636
class Author
3737
{
3838
/**
39-
* @Assert\Type("Ramsey\Uuid\UuidInterface")
39+
* @Assert\Type("Symfony\Component\Uid\Uid")
4040
*/
4141
protected $id;
4242

0 commit comments

Comments
 (0)