mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
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:
parent
01044bb7ac
commit
475c92f17f
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user