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

@phpstan-type should allow comment #10874

Open
mvorisek opened this issue Apr 14, 2024 · 1 comment
Open

@phpstan-type should allow comment #10874

mvorisek opened this issue Apr 14, 2024 · 1 comment

Comments

@mvorisek
Copy link
Contributor

mvorisek commented Apr 14, 2024

Feature request

repro: https://phpstan.org/r/7c46bd5d-b1ff-45e3-b69b-b51634be80f9

like any other phpdoc like @param or @var does

@VincentLanglet
Copy link
Contributor

I saw multiples projects with the syntax
https://phpstan.org/r/df1d060b-9f2b-4b86-a4b6-4d4acac29474

@phpstan-type MyType = int

When adding the "comment-feature",

  • either it could still support alternative syntax (like the one with =)
  • either it could be the moment to support only the "official" syntax (without the =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants