diff --git a/reference/constraints/Type.rst b/reference/constraints/Type.rst index fcbc669e1e0..09e12b98d77 100644 --- a/reference/constraints/Type.rst +++ b/reference/constraints/Type.rst @@ -3,11 +3,21 @@ Type Validates that a value has a specific data type -.. code-block:: yaml +.. configuration-block:: + + .. code-block:: yaml + + properties: + age: + - Type: integer + + .. code-block:: php-annotations + + /** + * @Assert\Type(type="integer") + */ + protected $age; - properties: - age: - - Type: integer Options -------