mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-19 02:23:11 +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);
|
$phpdoc = new DocBlock($reflection);
|
||||||
|
|
||||||
if ($phpdoc->hasTag('return')) {
|
if ($phpdoc->hasTag('return')) {
|
||||||
$type = $phpdoc->getTagsByName('return')[0]->getContent();
|
$type = $phpdoc->getTagsByName('return')[0]->getType();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $type;
|
return $type;
|
||||||
|
|||||||
Reference in New Issue
Block a user