Skip to content

Commit 8e91949

Browse files
committed
minor #6166 Fix by_reference deprecated FormType::class (nemo-)
This PR was merged into the 2.8 branch. Discussion ---------- Fix by_reference deprecated FormType::class | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.8, 3.0, 3.1 | Fixed tickets | - Commits ------- 5d1806e Fix by_reference deprecated FormType::class
2 parents f398b03 + 5d1806e commit 8e91949

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

reference/forms/types/options/by_reference.rst.inc

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ To explain this further, here's a simple example::
1212

1313
use Symfony\Component\Form\Extension\Core\Type\TextType;
1414
use Symfony\Component\Form\Extension\Core\Type\EmailType;
15+
use Symfony\Component\Form\Extension\Core\Type\FormType;
1516
// ...
1617

1718
$builder = $this->createFormBuilder($article);
1819
$builder
1920
->add('title', TextType::class)
2021
->add(
21-
$builder->create('author', 'form', array('by_reference' => ?))
22+
$builder->create('author', FormType::class, array('by_reference' => ?))
2223
->add('name', TextType::class)
2324
->add('email', EmailType::class)
2425
)

0 commit comments

Comments
 (0)