Merge pull request #1598 from loverg-c/fix/invalidTag

Fix invalid tag which doesn't has description
This commit is contained in:
Guilhem Niot 2020-03-08 10:19:36 +01:00 committed by GitHub
commit eb99b32151
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ class PropertyPhpDocReader
if (!$title = $docBlock->getSummary()) {
/** @var Var_ $var */
foreach ($docBlock->getTagsByName('var') as $var) {
if (!$description = $var->getDescription()) {
if (!method_exists($var, 'getDescription') || !$description = $var->getDescription()) {
continue;
}
$title = $description->render();