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 ))