@@ -398,8 +398,6 @@ is created from the form factory.
398398
399399 $form = $formFactory->createBuilder()
400400 ->add('task', TextType::class)
401- // If you use PHP 5.3 or 5.4, you must use
402- // ->add('task', 'Symfony\Component\Form\Extension\Core\Type\TextType')
403401 ->add('dueDate', DateType::class)
404402 ->getForm();
405403
@@ -426,8 +424,6 @@ is created from the form factory.
426424
427425 $form = $this->createFormBuilder()
428426 ->add('task', TextType::class)
429- // If you use PHP 5.3 or 5.4, you must use
430- // ->add('task', 'Symfony\Component\Form\Extension\Core\Type\TextType')
431427 ->add('dueDate', DateType::class)
432428 ->getForm();
433429
@@ -439,8 +435,7 @@ is created from the form factory.
439435
440436 As you can see, creating a form is like writing a recipe: you call ``add ``
441437for each new field you want to create. The first argument to ``add `` is the
442- name of your field, and the second is the fully qualified class name. If you
443- use PHP 5.5 or above, you can use ``::class `` constant of a form type. The Form
438+ name of your field, and the second is the fully qualified class name. The Form
444439component comes with a lot of :doc: `built-in types </reference/forms/types >`.
445440
446441Now that you've built your form, learn how to :ref: `render <component-form-intro-rendering-form >`
0 commit comments