From f37c6bed41b3c755b31bc04c70cdc8baa6cab587 Mon Sep 17 00:00:00 2001 From: Nietono <8806554+nietonchique@users.noreply.github.com> Date: Fri, 29 Jan 2021 03:03:50 +0300 Subject: [PATCH] Update Type.rst Change Ramsey to symfony/uid --- reference/constraints/Type.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/constraints/Type.rst b/reference/constraints/Type.rst index 8aa0edd1ba2..aa48a17ca6d 100644 --- a/reference/constraints/Type.rst +++ b/reference/constraints/Type.rst @@ -18,7 +18,7 @@ Validator :class:`Symfony\\Component\\Validator\\Constraints\\TypeValidator` Basic Usage ----------- -This will check if ``id`` is an instance of ``Ramsey\Uuid\UuidInterface``, +This will check if ``id`` is an instance of ``Symfony\Component\Uid\Uid``, ``firstName`` is of type ``string`` (using :phpfunction:`is_string` PHP function), ``age`` is an ``integer`` (using :phpfunction:`is_int` PHP function) and ``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``, class Author { /** - * @Assert\Type("Ramsey\Uuid\UuidInterface") + * @Assert\Type("Symfony\Component\Uid\Uid") */ protected $id;