8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 66a0b48 + d7adfc5 commit 458f154Copy full SHA for 458f154
reference/constraints/Type.rst
@@ -3,11 +3,21 @@ Type
3
4
Validates that a value has a specific data type
5
6
-.. code-block:: yaml
+.. configuration-block::
7
+
8
+ .. code-block:: yaml
9
10
+ properties:
11
+ age:
12
+ - Type: integer
13
14
+ .. code-block:: php-annotations
15
16
+ /**
17
+ * @Assert\Type(type="integer")
18
+ */
19
+ protected $age;
20
- properties:
- age:
- - Type: integer
21
22
Options
23
-------
0 commit comments