8000 minor #6409 Update 'date' to DateType::class in form.rst (iltar) · symfony/symfony-docs@5928110 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5928110

Browse files
committed
minor #6409 Update 'date' to DateType::class in form.rst (iltar)
This PR was merged into the 2.8 branch. Discussion ---------- Update 'date' to DateType::class in form.rst | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.8+ | Fixed tickets | ~ A small patch for a small issue. This patch should be merged upwards as 3.0 also has the old notation. Commits ------- 23abecc Update 'date' to DateType::class in form.rst
2 parents 6fb77fb + 23abecc commit 5928110

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/forms.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ the documentation for each type.
694694
:ref:`disable HTML5 validation <book-forms-html5-validation-disable>`
695695
or set the ``required`` option on your field to ``false``::
696696
697-
->add('dueDate', 'date', array(
697+
->add('dueDate', DateType::class, array(
698698
'widget' => 'single_text',
699699
'required' => false
700700
))

0 commit comments

Comments
 (0)
0