Skip to content
Discussion options

You must be logged in to vote

Hi Honza,

in AST the docs do not exist on their own. They are automatically bound to next node, that can be anything here.
The same way attributes do not exist without class/property etc.

To taret the file docs, it's better to go with custom PHP CS Fixer rule and subscribe to T_DOC/COMMENT tokens.
Detect the content by obvious markers and remove it.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@escopecz
Comment options

@TomasVotruba
Comment options

Answer selected by escopecz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants