Skip to content

Commit

Permalink
minor symfony#6409 Update 'date' to DateType::class in form.rst (iltar)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
xabbuh committed Mar 30, 2016
2 parents 6fb77fb + 23abecc commit 5928110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/forms.rst
Original file line number Diff line number Diff line change
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 5928110

Please sign in to comment.