From 475c92f17f21e60e8f8aaae4cb6bc36658153144 Mon Sep 17 00:00:00 2001 From: Valentin Ferriere Date: Wed, 19 Jun 2013 10:17:37 +0200 Subject: [PATCH] Update FormTypeParser.php This catch is missing, because it can break here https://github.com/symfony/Form/blob/master/FormRegistry.php#L89 --- Parser/FormTypeParser.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Parser/FormTypeParser.php b/Parser/FormTypeParser.php index 7698bf1..5d53168 100644 --- a/Parser/FormTypeParser.php +++ b/Parser/FormTypeParser.php @@ -12,6 +12,7 @@ namespace Nelmio\ApiDocBundle\Parser; use Symfony\Component\Form\Exception\UnexpectedTypeException; +use Symfony\Component\Form\Exception\InvalidArgumentException; use Symfony\Component\OptionsResolver\Exception\MissingOptionsException; use Symfony\Component\Form\FormFactoryInterface; use Symfony\Component\Form\Exception\FormException; @@ -172,6 +173,8 @@ class FormTypeParser implements ParserInterface return $this->formFactory->create($item); } catch (UnexpectedTypeException $e) { // nothing + } catch (InvalidArgumentException $e) { + // nothing } } }