We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 variables are considered unused when only appearing on the left-hand side of an assignment.
This is considered fine:
function fn() { $foo = true; $var = 'foo'; return $$var; }
While this says $var is unused:
$var
function fn() { $foo = true; $var = 'foo'; $$var = false; }
($foo is marked unused in both cases, but I guess there's no way to avoid that without deeper program flow analysis.)
$foo
The text was updated successfully, but these errors were encountered:
Thanks! Wow, variable variables are tough. I created #87 to track the fact that they are hard to deal with.
In the mean time, #88 should solve this.
Sorry, something went wrong.
Thanks! 🙂
Successfully merging a pull request may close this issue.
Variable variables are considered unused when only appearing on the left-hand side of an assignment.
This is considered fine:
While this says
$var
is unused:(
$foo
is marked unused in both cases, but I guess there's no way to avoid that without deeper program flow analysis.)The text was updated successfully, but these errors were encountered: