Catch exception for normalizing

Mainly for catching exceptions in inheritdoc etc. Should fix #59
This commit is contained in:
Barry vd. Heuvel
2014-02-14 11:48:19 +01:00
parent b6a9d8e4f9
commit 14cd044103
@@ -354,7 +354,11 @@ exit('Only to be used as an helper for your IDE');\n\n";
$serializer = new DocBlockSerializer(1, "\t"); $serializer = new DocBlockSerializer(1, "\t");
//Normalize the description and inherit the docs from parents/interfaces //Normalize the description and inherit the docs from parents/interfaces
$this->normalizeDescription($phpdoc, $method); try{
$this->normalizeDescription($phpdoc, $method);
}catch(\Exception $e){
$this->info("Cannot normalize method $alias::$methodName..");
}
//Correct the return values //Correct the return values
$returnValue = $this->getReturn($phpdoc); $returnValue = $this->getReturn($phpdoc);