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,10 +32,13 @@ class JmsMetadataParser implements ParserInterface
*/ */
public function supports($input) public function supports($input)
{ {
if ($meta = $this->factory->getMetadataForClass($input)) { try {
return true; if ($meta = $this->factory->getMetadataForClass($input)) {
return true;
}
} catch (\ReflectionException $e) {
} }
return false; return false;
} }