-
Notifications
You must be signed in to change notification settings - Fork 874
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PHP] Inheriting docs is broken #4686
Comments
I'll fix the behavior for fields and consts. I implemented this feature based on that behavior (https://pear.php.net/package/PhpDocumentor/docs/latest/phpDocumentor/tutorial_tags.inlineinheritdoc.pkg.html). The parent phpdoc doesn't have a description but it has only a header. May I have your expected result? Other IDE, editor and language
|
Phpdocumentor separates sentences into the header and description. Then, it replaces `{@inheritdoc}` with description. However, if there is only one sentence in the parent PHPDoc, `{@inheritdoc}` is not replaced anything in the child PHPDoc. So, just replace `{@inheritdoc}` with whole parent sentences by default.
Phpdocumentor separates sentences into the header and description. Then, it replaces `{@inheritdoc}` with description. However, if there is only one sentence in the parent PHPDoc, `{@inheritdoc}` is not replaced anything in the child PHPDoc. So, just replace `{@inheritdoc}` with whole parent sentences by default.
Phpdocumentor separates sentences into the header and description. Then, it replaces `{@inheritdoc}` with description. However, if there is only one sentence in the parent PHPDoc, `{@inheritdoc}` is not replaced anything in the child PHPDoc. So, just replace `{@inheritdoc}` with whole parent sentences by default.
Improve `{@inheritdoc}` behavior #4686
Phpdocumentor separates sentences into the header and description. Then, it replaces `{@inheritdoc}` with description. However, if there is only one sentence in the parent PHPDoc, `{@inheritdoc}` is not replaced anything in the child PHPDoc. So, just replace `{@inheritdoc}` with whole parent sentences by default.
I've just tested this in NB17 and it still does not work. {@inheritdoc} shows up in plain text instead of being replaced by the parent docblock comment. |
Apache NetBeans version
Apache NetBeans 15
What happened
NetBeans doesn't inherit docs for class properties, see example below.
How to reproduce
Did this work correctly in an earlier version?
No / Don't know
Operating System
Windows 11 Pro 22000.978
JDK
OpenJDK 19.0.0 (from Chocolatey)
Apache NetBeans packaging
Apache NetBeans provided installer
Anything else
https://pear.php.net/package/PhpDocumentor/docs/latest/phpDocumentor/tutorial_tags.inlineinheritdoc.pkg.html
Are you willing to submit a pull request?
No
Code of Conduct
Yes
The text was updated successfully, but these errors were encountered: