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

Comment not allowed in @phpstan-type

Open dakur opened this issue 8 months ago • 0 comments

Bug report

I'd like to add comment to local type alias (@phpstan-type) but it throws "PHPDoc tag @phpstan-type MyNumber has invalid value: Unexpected token "some", expected TOKEN_PHPDOC_EOL at offset..."

Didn't find any mention in docs that comments are not allowed.

Code snippet that reproduces the problem

https://phpstan.org/r/94564802-931b-496e-b84f-82795bd0b552

Expected output

No errors

Did PHPStan help you today? Did it make you happy in any way?

It helps every day, it's so native that I can think coding without it anymore.

dakur avatar Nov 08 '23 15:11 dakur