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;