Skip to content

Commit 3ab3830

Browse files
committed
Fixed PHP 5.5+ reference in form component
1 parent 291a42a commit 3ab3830

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Diff for: components/form/introduction.rst

+2-6
Original file line numberDiff line numberDiff line change
@@ -391,13 +391,9 @@ is created from the form factory.
391391

392392
.. code-block:: php-standalone
393393
394-
// PHP 5.5 and above
395-
use Symfony\Component\Form\Extension\Core\Type\TextType;
396-
use Symfony\Component\Form\Extension\Core\Type\DateType;
397-
398394
$form = $formFactory->createBuilder()
399-
->add('task', TextType::class)
400-
->add('dueDate', DateType::class)
395+
->add('task', 'Symfony\Component\Form\Extension\Core\Type\TextType')
396+
->add('dueDate', 'Symfony\Component\Form\Extension\Core\Type\DateType')
401397
->getForm();
402398
403399
var_dump($twig->render('new.html.twig', array(

0 commit comments

Comments
 (0)