From 14cd04410397e107df452406dba581c5575df7bb Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Fri, 14 Feb 2014 11:48:19 +0100 Subject: [PATCH] Catch exception for normalizing Mainly for catching exceptions in inheritdoc etc. Should fix #59 --- src/Barryvdh/LaravelIdeHelper/GeneratorCommand.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Barryvdh/LaravelIdeHelper/GeneratorCommand.php b/src/Barryvdh/LaravelIdeHelper/GeneratorCommand.php index e87ddbb..dbf350f 100755 --- a/src/Barryvdh/LaravelIdeHelper/GeneratorCommand.php +++ b/src/Barryvdh/LaravelIdeHelper/GeneratorCommand.php @@ -354,7 +354,11 @@ exit('Only to be used as an helper for your IDE');\n\n"; $serializer = new DocBlockSerializer(1, "\t"); //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 $returnValue = $this->getReturn($phpdoc);