8000 minor #8421 Update label_format.rst.inc (tabbi89) · symfony/symfony-docs@583d021 · GitHub
[go: up one dir, main page]

Skip to content

Commit 583d021

Browse files
committed
minor #8421 Update label_format.rst.inc (tabbi89)
This PR was submitted for the 3.0 branch but it was merged into the 3.3 branch instead (closes #8421). Discussion ---------- Update label_format.rst.inc Fallow form types as Class Names! Commits ------- 3b17629 Update label_format.rst.inc
2 parents ff14bc5 + 3b17629 commit 583d021

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ to a field. To avoid duplicated keyword messages, you can configure the label
1414
format to a static value, like::
1515
1616
// ...
17-
$profileFormBuilder->add('address', new AddressType(), array(
17+
$profileFormBuilder->add('address', AddressType::class, array(
1818
'label_format' => 'form.address.%name%',
1919
));
2020
21-
$invoiceFormBuilder->add('invoice', new AddressType(), array(
21+
$invoiceFormBuilder->add('invoice', AddressType::class, array(
2222
'label_format' => 'form.address.%name%',
2323
));
2424

0 commit comments

Comments
 (0)
0