phpstan / phpdoc-parser

Next-gen phpDoc parser with support for intersection types and generics
MIT License
1.35k stars 61 forks source link

fix HTML description detection for phpstorm stubs #220

Closed schlndh closed 1 year ago

schlndh commented 1 year ago

Here is a quick attempt to address this

The problem turned out to be due to the fact that the existing code relies on detecting the < of the end tag as a separate token first. But instead it gets .</p> as a single token.

I'm not sure whether it's better to fix it this way or by modifying the lexer.

BTW: README.md says that you can just run composer install and make to build it, but make cs doesn't work (build-cs directory is missing - github actions check it out from phpstan's repo).

ondrejmirtes commented 1 year ago

Thank you!