diff --git a/src/LiveComponent/doc/index.rst b/src/LiveComponent/doc/index.rst index 5b1e4e1e75a..878123c16ee 100644 --- a/src/LiveComponent/doc/index.rst +++ b/src/LiveComponent/doc/index.rst @@ -1715,7 +1715,7 @@ Now, create a Twig component to render the form:: use DefaultActionTrait; #[LiveProp] - public initialFormData $post; + public Post $initialFormData; protected function instantiateForm(): FormInterface { @@ -1759,7 +1759,6 @@ and ``removeComment()`` actions: {{ form_widget(commentForm) }} {% endfor %} - {# avoid an extra label for this field #} {% do form.comments.setRendered %}