Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Closed
@pablotheissen

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /