Skip to content

Commit 30fbfc3

Browse files
committed
minor #7100 Update birthday.rst (angyvolin)
This PR was submitted for the 3.1 branch but it was merged into the 2.8 branch instead (closes #7100). Discussion ---------- Update birthday.rst Commits ------- 3ce4093 Update birthday.rst
2 parents 9d5ae6b + 3ce4093 commit 30fbfc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/forms/types/birthday.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,14 @@ If your widget option is set to ``choice``, then this field will be represented
8282
as a series of ``select`` boxes. When the placeholder value is a string,
8383
it will be used as the **blank value** of all select boxes::
8484

85-
$builder->add('birthdate', 'birthday', array(
85+
$builder->add('birthdate', BirthdayType::class, array(
8686
'placeholder' => 'Select a value',
8787
));
8888

8989
Alternatively, you can use an array that configures different placeholder
9090
values for the year, month and day fields::
9191

92-
$builder->add('birthdate', 'birthday', array(
92+
$builder->add('birthdate', BirthdayType::class, array(
9393
'placeholder' => array(
9494
'year' => 'Year', 'month' => 'Month', 'day' => 'Day',
9595
)

0 commit comments

Comments
 (0)