Skip to content

Commit eda7791

Browse files
committed
minor #14899 [Form] Update Type.rst (nietonchique)
This PR was submitted for the 5.2 branch but it was merged into the 4.4 branch instead. Discussion ---------- [Form] Update Type.rst Change ramsey uid implementation to symfony/uid. Commits ------- f37c6be Update Type.rst
2 parents 36421ad + f37c6be commit eda7791

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)