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
Combining @var and @phpstan-var breaks $this in tempaltes #4606
Comments
Fixed: phpstan/phpstan-src@3186fff |
This was referenced Mar 9, 2021
Closed
Bump phpstan/phpstan from 0.12.78 to 0.12.81 in /composer/helpers/v1
dependabot/dependabot-core#3248
Merged
Bump phpstan/phpstan from 0.12.78 to 0.12.81 in /composer/helpers/v2
dependabot/dependabot-core#3249
Merged
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug report
PhpStorm doesn't support
array{}
notation, so I tried to add a more specific one using@phpstan-var
tag. It works, but it somehow broke$this
. Removing@phpstan-var list<array{stdClass, int}> $assigned
line or using@var list<array{stdClass, int}> $assigned
fixes the issue.Code snippet that reproduces the problem
https://phpstan.org/r/44439bbd-02ce-40b5-9ad1-2d40b521a7a7
Expected output
The text was updated successfully, but these errors were encountered: