8000 bug #7130 [Validator] Fixed incorrect xml constraint example (acrobat) · symfony/symfony-docs@c83c72c · GitHub
[go: up one dir, main page]

Skip to content

Commit c83c72c

Browse files
committed
bug #7130 [Validator] Fixed incorrect xml constraint example (acrobat)
This PR was merged into the 2.7 branch. Discussion ---------- [Validator] Fixed incorrect xml constraint example I've fixed an incorrect xml example for the type constraint. See image for validation error in phpstorm ![example_bug](https://cloud.githubusercontent.com/assets/1374857/20151627/1b845fc0-a6bb-11e6-94d6-589cf117b8d1.png) Commits ------- 786555d Fixed incorrect xml constraint example
2 parents 2573102 + 786555d commit c83c72c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/constraints/Type.rst

Lines changed: 1 addition & 1 deletion
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)
0