Update FormTypeParser.php

This catch is missing, because it can break here https://github.com/symfony/Form/blob/master/FormRegistry.php#L89
This commit is contained in:
Valentin Ferriere 2013-06-19 10:17:37 +02:00
parent 01044bb7ac
commit 475c92f17f

View File

@ -12,6 +12,7 @@
namespace Nelmio\ApiDocBundle\Parser; namespace Nelmio\ApiDocBundle\Parser;
use Symfony\Component\Form\Exception\UnexpectedTypeException; use Symfony\Component\Form\Exception\UnexpectedTypeException;
use Symfony\Component\Form\Exception\InvalidArgumentException;
use Symfony\Component\OptionsResolver\Exception\MissingOptionsException; use Symfony\Component\OptionsResolver\Exception\MissingOptionsException;
use Symfony\Component\Form\FormFactoryInterface; use Symfony\Component\Form\FormFactoryInterface;
use Symfony\Component\Form\Exception\FormException; use Symfony\Component\Form\Exception\FormException;
@ -172,6 +173,8 @@ class FormTypeParser implements ParserInterface
return $this->formFactory->create($item); return $this->formFactory->create($item);
} catch (UnexpectedTypeException $e) { } catch (UnexpectedTypeException $e) {
// nothing // nothing
} catch (InvalidArgumentException $e) {
// nothing
} }
} }
} }