Skip to content

Commit

Permalink
Merge pull request nelmio#69 from evillemez/jms_fix
Browse files Browse the repository at this point in the history
fixed JmsMetadataParser::supports
  • Loading branch information
willdurand committed Aug 27, 2012
2 parents ee36e59 + be3cbb5 commit b085338
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Parser/JmsMetadataParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,13 @@ public function __construct(MetadataFactoryInterface $factory)
*/
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;
}

Expand Down

0 comments on commit b085338

Please sign in to comment.