mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
fixed potential error in JmsMetadataParser::supports
This commit is contained in:
parent
ee36e599c9
commit
be3cbb5ba3
@ -32,10 +32,13 @@ class JmsMetadataParser implements ParserInterface
|
||||
*/
|
||||
public function supports($input)
|
||||
{
|
||||
if ($meta = $this->factory->getMetadataForClass($input)) {
|
||||
return true;
|
||||
try {
|
||||
if ($meta = $this->factory->getMetadataForClass($input)) {
|
||||
return true;
|
||||
}
|
||||
} catch (\ReflectionException $e) {
|
||||
}
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user