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