-
-
Notifications
You must be signed in to change notification settings - Fork 864
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
Variable $dbi in PHPDoc tag @var does not exist. #4500
Comments
You trying to define global variable but in local scope. I think you should define global variable in global scope. Just moving your var tag outside class should solve this. |
Actual problem reproduction: https://phpstan.org/r/4f95e99a-0ca6-4e75-babd-d298edb01362 |
Fixed: phpstan/phpstan-src@fa5f8ec |
Awesome 🥇 ! |
@williamdes PHPStan 0.12.73 is out :) The inline |
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
See: phpstan/phpstan#4500 Signed-off-by: William Desportes <williamdes@wdes.fr>
It works fine, thank you so much ! |
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. |
Bug report
https://phpstan.org/r/92033ccc-e1e5-4be4-bb5b-6059527a9f27
Code snippet that reproduces the problem
Expected output
As before, let me document globals, they are valid for some IDEs
PS: could you fix
phpstan.dev
website ?The text was updated successfully, but these errors were encountered: