yiisoft / yii2-apidoc

Yii 2 apidoc extension.
https://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
258 stars 121 forks source link

Do not show a "virtual" / "magic" methods's full description if it matches short description #239

Closed arogachev closed 2 years ago

arogachev commented 2 years ago

What steps will reproduce the problem?

Found after retest https://github.com/yiisoft/yii2-apidoc/issues/136#issuecomment-986516423.

https://www.yiiframework.com/doc/api/2.0/yii-db-activerecord#hasMany()-detail

Screenshot 2021-12-06 at 13-45-55 ActiveRecord, yii db ActiveRecord Screenshot 2021-12-06 at 13-52-18 ActiveRecord, yii db ActiveRecord

What's expected?

No duplication.

What do you get instead?

Duplication.

Additional info

Q A
Yii version doesn't matter
Yii APIDoc version master
PHP version doesn't matter
Operating system doesn't matter
arogachev commented 2 years ago

Seems like this only happens for custom so called "virtual" / "magic" methods.