mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 01:57:13 +00:00
Resolve displaying @return types with descriptions (#491)
This commit is contained in:
committed by
Barry vd. Heuvel
parent
3ab73555d9
commit
3814fe86ca
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user