-
Notifications
You must be signed in to change notification settings - Fork 41
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
Incorrect line numbers output for Unused Variable errors #446
Comments
Good catch, and thanks for reporting. The version of VariableAnalysis we have is somewhat out of date - #236 is the ticket to resolve this, and I'd like to find time with @sirbrillig on the best way to get VIPCS using the up to date version. I'll leave this ticket open for now, as a reminder to check that this particular edge case is addressed once we have the new version of VA, but it's honestly unlikely to get addressed directly in the meantime. |
👋 @GaryJones I'm happy to go over this together some time! Maybe ping me on Slack and we can chat about it in more detail? |
Ran in to this again. Any luck with your investigation? |
Hit this again today with liveblog. |
Looks like the discussion on this has moved to #449 (Please let me know if I can help, VIP friends!) |
Now that #449 is completed to use VariableAnalysis proper, I've confirmed that the provided example above doesn't give an error with the Also, note #498 where we may silence the violations for unused variables completely. |
Bug Description
Incorrect line numbers are output for Unused Variable errors.
Minimal Code Snippet
Error Code
Environment
Use
php -v
andcomposer show
to get versions.Additional Context (optional)
Enable these rulesets:
The text was updated successfully, but these errors were encountered: