diff --git a/ModelDescriber/PhpdocPropertyAnnotationReader.php b/ModelDescriber/PhpdocPropertyAnnotationReader.php index 9c5bebc..9b97423 100644 --- a/ModelDescriber/PhpdocPropertyAnnotationReader.php +++ b/ModelDescriber/PhpdocPropertyAnnotationReader.php @@ -52,7 +52,7 @@ class PhpdocPropertyAnnotationReader if (!$title = $docBlock->getSummary()) { /** @var Var_ $var */ foreach ($docBlock->getTagsByName('var') as $var) { - if (null === $description = $var->getDescription()) continue; + if (!$description = $var->getDescription()) continue; $title = $description->render(); if ($title) break; } @@ -60,7 +60,7 @@ class PhpdocPropertyAnnotationReader if ($property->getTitle() === null && $title) { $property->setTitle($title); } - if ($property->getDescription() === null && $docBlock->getDescription()) { + if ($property->getDescription() === null && $docBlock->getDescription() && $docBlock->getDescription()->render()) { $property->setDescription($docBlock->getDescription()->render()); } if ($property->getType() === null) {