diff --git a/ModelDescriber/Annotations/PropertyPhpDocReader.php b/ModelDescriber/Annotations/PropertyPhpDocReader.php index 8cac5cd..ff823c7 100644 --- a/ModelDescriber/Annotations/PropertyPhpDocReader.php +++ b/ModelDescriber/Annotations/PropertyPhpDocReader.php @@ -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();