Skip to content

Commit 786555d

Browse files
committed
Fixed incorrect xml constraint example
1 parent 5f004c3 commit 786555d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/constraints/Type.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ This will check if ``firstName`` is of type ``string`` and that ``age`` is an
7272
<class name="AppBundle\Entity\Author">
7373
<property name="firstName">
7474
<constraint name="Type">
75-
<type>string</type>
75+
<option name="type">string</option>
7676
</constraint>
7777
</property>
7878
<property name="age">

0 commit comments

Comments
 (0)