diff --git a/src/Server/TextDocument.php b/src/Server/TextDocument.php index 2e8e4bf..50cf338 100644 --- a/src/Server/TextDocument.php +++ b/src/Server/TextDocument.php @@ -318,6 +318,9 @@ class TextDocument if ($def->declarationLine) { $contents[] = new MarkedString('php', "declarationLine); } + if ($def->type) { + $contents[] = new MarkedString('text', (string)$def->type); + } if ($def->documentation) { $contents[] = $def->documentation; }