Skip to content

Commit 8f6038b

Browse files
committed
minor #6139 Update the doc to change a deprecated use case (ChristopheBoucaut)
This PR was submitted for the 3.0 branch but it was merged into the 2.8 branch instead (closes #6139). Discussion ---------- Update the doc to change a deprecated use case Commits ------- ced63f2 Update the doc to change a deprecated use case
2 parents 84ded6c + ced63f2 commit 8f6038b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/form/introduction.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ builder:
457457

458458
.. code-block:: php-standalone
459459
460+
use Symfony\Component\Form\Extension\Core\Type\FormType;
460461
use Symfony\Component\Form\Extension\Core\Type\TextType;
461462
use Symfony\Component\Form\Extension\Core\Type\DateType;
462463
@@ -466,7 +467,7 @@ builder:
466467
'dueDate' => new \DateTime('tomorrow'),
467468
);
468469
469-
$form = $formFactory->createBuilder('form', $defaults)
470+
$form = $formFactory->createBuilder(FormType::class, $defaults)
470471
->add('task', TextType::class)
471472
->add('dueDate', DateType::class)
472473
->getForm();

0 commit comments

Comments
 (0)