Skip to content
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

Comment not allowed in @phpstan-type #219

Open
dakur opened this issue Nov 8, 2023 · 0 comments
Open

Comment not allowed in @phpstan-type #219

dakur opened this issue Nov 8, 2023 · 0 comments

Comments

@dakur
Copy link

dakur commented Nov 8, 2023

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.

@ondrejmirtes ondrejmirtes transferred this issue from phpstan/phpstan Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant