Skip to content

Commit 43df701

Browse files
committed
minor symfony#18303 [Form] Fix Forms docblock to use FQCN (HeahDude)
This PR was merged into the 2.8 branch. Discussion ---------- [Form] Fix `Forms` docblock to use FQCN | Q | A | ------------- | --- | Branch? | 2.8+ | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | - Commits ------- df61aab [Form] Fix `Forms` docblock to use FQCN
2 parents d2b0ebc + df61aab commit 43df701

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/Symfony/Component/Form/Forms.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@
2424
* $formFactory = Forms::createFormFactory();
2525
*
2626
* $form = $formFactory->createBuilder()
27-
* ->add('firstName', 'text')
28-
* ->add('lastName', 'text')
29-
* ->add('age', 'integer')
30-
* ->add('gender', 'choice', array(
31-
* 'choices' => array('m' => 'Male', 'f' => 'Female'),
27+
* ->add('firstName', 'Symfony\Component\Form\Extension\Core\Type\TextType')
28+
* ->add('lastName', 'Symfony\Component\Form\Extension\Core\Type\TextType')
29+
* ->add('age', 'Symfony\Component\Form\Extension\Core\Type\IntegerType')
30+
* ->add('gender', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', array(
31+
* 'choices' => array('Male' => 'm', 'Female' => 'f'),
32+
* 'choices_as_values' => true,
3233
* ))
3334
* ->getForm();
3435
* </code>

0 commit comments

Comments
 (0)