Skip to content

Commit 23abecc

Browse files
committed
Update 'date' to DateType::class in form.rst
A small patch for a small issue. This patch should be merged upwards as 3.0 also has the old notation.
1 parent a064e17 commit 23abecc

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)