Skip to content

phpstan-method annotation support #2976

@canvural

Description

@canvural

Example: https://phpstan.org/r/3582fd00-ec4a-4d8e-bff7-40e6804ebc86

Normal @method works fine. PHPStan reads it and sees the method foo exists and uses it. But the same thing does not work with phpstan-method annotation. I'm not sure if this is not supported or it is a bug.

The reason for this is, sometimes IDEs do not support the syntax that PHPStan has. So I want to use both method and phpstan-method annotations. method will be for IDEs and code autocompletion, phpstan-method will be for PHPStan.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions