From 7e7ca06bffe8c473181c73f86b57031cf50857d8 Mon Sep 17 00:00:00 2001 From: Piotr Antosik Date: Fri, 6 Feb 2015 14:36:19 +0100 Subject: [PATCH] add typehint --- cookbook/form/dynamic_form_modification.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cookbook/form/dynamic_form_modification.rst b/cookbook/form/dynamic_form_modification.rst index 92d7521f4e4..6124d9b6f24 100644 --- a/cookbook/form/dynamic_form_modification.rst +++ b/cookbook/form/dynamic_form_modification.rst @@ -721,10 +721,11 @@ all of this, use a listener:: use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\Form\FormEvents; + use Symfony\Component\Form\FormEvent; public function buildForm(FormBuilderInterface $builder, array $options) { - $builder->addEventListener(FormEvents::POST_SUBMIT, function ($event) { + $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) { $event->stopPropagation(); }, 900); // Always set a higher priority than ValidationListener