mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-04-02 21:36:14 +03:00
Merge pull request #1598 from loverg-c/fix/invalidTag
Fix invalid tag which doesn't has description
This commit is contained in:
commit
eb99b32151
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