mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-04-01 21:06:15 +03:00
Fix invalid tag which doesn't has description
This commit is contained in:
parent
0fcf2d5c9a
commit
9ba4735b78
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue