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

unresolvable type when starting @return description with html tag #41

Closed
pablotheissen opened this issue Apr 14, 2020 · 3 comments
Closed

Comments

@pablotheissen
Copy link

Bug report

When using an html tag as the first part of the desciprtion of the @return statement, PHPStan returns the error PHPDoc tag @return contains unresolvable type.:

 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.

This only occurs with the characters < and & as the first char of the description. All other cases I tested worked out fine.

Code snippet that reproduces the problem

https://phpstan.org/r/6bd09036-ee66-4fd4-9e69-6d4a5b51fb83

Expected output

I found nothing against using html in the start of a PHPdoc description, so this snippet shouldn't return an error.

@ondrejmirtes ondrejmirtes transferred this issue from phpstan/phpstan Apr 14, 2020
@ondrejmirtes
Copy link
Member

Yeah, this is difficult because it conflicts with the generics syntax.

@ondrejmirtes
Copy link
Member

Fixed by #47

@github-actions
Copy link

github-actions bot commented May 1, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants