From 23abecce10345476bbe2802ecd15e2f5fa1d4eb4 Mon Sep 17 00:00:00 2001 From: Iltar van der Berg Date: Tue, 29 Mar 2016 22:05:52 +0200 Subject: [PATCH] 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. --- book/forms.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/forms.rst b/book/forms.rst index 2e5f24d4674..7ffecb87334 100644 --- a/book/forms.rst +++ b/book/forms.rst @@ -694,7 +694,7 @@ the documentation for each type. :ref:`disable HTML5 validation ` or set the ``required`` option on your field to ``false``:: - ->add('dueDate', 'date', array( + ->add('dueDate', DateType::class, array( 'widget' => 'single_text', 'required' => false ))