Skip to content

Commit 37f420a

Browse files
committed
minor #19939 [Form] Change Type of field to correct one (Euugi)
This PR was submitted for the 7.1 branch but it was merged into the 5.4 branch instead. Discussion ---------- [Form] Change Type of field to correct one <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `7.x` for features of unreleased versions). --> Commits ------- a6a828e Change Type of field to correct one
2 parents 55859c6 + a6a828e commit 37f420a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/forms/types/time.rst

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

72-
$builder->add('startTime', 'time', [
72+
$builder->add('startTime', TimeType::class, [
7373
'placeholder' => 'Select a value',
7474
]);
7575

7676
Alternatively, you can use an array that configures different placeholder
7777
values for the hour, minute and second fields::
7878

79-
$builder->add('startTime', 'time', [
79+
$builder->add('startTime', TimeType::class, [
8080
'placeholder' => [
8181
'hour' => 'Hour', 'minute' => 'Minute', 'second' => 'Second',
8282
],

0 commit comments

Comments
 (0)