Merge pull request #203 from choomz/patch-1

Update FormTypeParser.php
This commit is contained in:
William Durand 2013-06-19 01:25:17 -07:00
commit 0b17291084

View File

@ -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
}
}
}