From 3814fe86ca487d05ae06077529a1e5f43f37ab5a Mon Sep 17 00:00:00 2001 From: Neil Farrington Date: Fri, 14 Apr 2017 02:56:19 -0400 Subject: [PATCH] Resolve displaying @return types with descriptions (#491) --- src/Console/ModelsCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index f631342..83e8836 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -741,7 +741,7 @@ class ModelsCommand extends Command $phpdoc = new DocBlock($reflection); if ($phpdoc->hasTag('return')) { - $type = $phpdoc->getTagsByName('return')[0]->getContent(); + $type = $phpdoc->getTagsByName('return')[0]->getType(); } return $type;