fixed potential error in JmsMetadataParser::supports

This commit is contained in:
Evan Villemez 2012-08-27 11:57:11 -04:00
parent ee36e599c9
commit be3cbb5ba3

View File

@ -32,9 +32,12 @@ class JmsMetadataParser implements ParserInterface
*/
public function supports($input)
{
try {
if ($meta = $this->factory->getMetadataForClass($input)) {
return true;
}
} catch (\ReflectionException $e) {
}
return false;
}