From a6a828e6f9438df3169ea8200ffb00b76dbf1a8c Mon Sep 17 00:00:00 2001 From: Patryk Miedziaszczyk <57354820+Euugi@users.noreply.github.com> Date: Tue, 4 Jun 2024 19:07:46 +0200 Subject: [PATCH] Change Type of field to correct one --- reference/forms/types/time.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/forms/types/time.rst b/reference/forms/types/time.rst index b45b0eab561..2ce41c6ff74 100644 --- a/reference/forms/types/time.rst +++ b/reference/forms/types/time.rst @@ -69,14 +69,14 @@ If your widget option is set to ``choice``, then this field will be represented as a series of ``select`` boxes. When the placeholder value is a string, it will be used as the **blank value** of all select boxes:: - $builder->add('startTime', 'time', [ + $builder->add('startTime', TimeType::class, [ 'placeholder' => 'Select a value', ]); Alternatively, you can use an array that configures different placeholder values for the hour, minute and second fields:: - $builder->add('startTime', 'time', [ + $builder->add('startTime', TimeType::class, [ 'placeholder' => [ 'hour' => 'Hour', 'minute' => 'Minute', 'second' => 'Second', ],