phpdoc-parser icon indicating copy to clipboard operation
phpdoc-parser copied to clipboard

Extending Printer?

Open chx opened this issue 4 months ago • 1 comments

The Drupal project now uses PHPStan types (change record) and the module serving https://api.drupal.org/ needs to follow and so I am looking at using this project for all of the comment parsing needs of drupal/api.

One problem I am facing is how Printer adds back the /** and * characters. While I could obviously remove these it would be much neater to just not have them in the first place. Printer, however, is final. Could this restriction be removed?

As an aside, I wrote a TypeNodeTraverser is there any interest in this?

chx avatar Jul 14 '25 16:07 chx