Skip to content

Commit

Permalink
Update 'date' to DateType::class in form.rst
Browse files Browse the repository at this point in the history
A small patch for a small issue. This patch should be merged upwards as 3.0 also has the old notation.
  • Loading branch information
linaori committed Mar 29, 2016
1 parent a064e17 commit 23abecc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/forms.rst
Expand Up @@ -694,7 +694,7 @@ the documentation for each type.
:ref:`disable HTML5 validation <book-forms-html5-validation-disable>`
or set the ``required`` option on your field to ``false``::
->add('dueDate', 'date', array(
->add('dueDate', DateType::class, array(
'widget' => 'single_text',
'required' => false
))
Expand Down

0 comments on commit 23abecc

Please sign in to comment.