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
function abc() { global $test; list( $test, $example ) = my_function( $_POST ); return $example; }
will report: Unused global variable $test.
But it isn't unused, since we assign a new value to it.
The text was updated successfully, but these errors were encountered:
This sounds very similar to #81, but perhaps it isn't covered since the assignment is done via list assignment.
Sorry, something went wrong.
Yes thanks. Issue is fixed there.
Tests: Add test for global update with list
8611e83
This is a follow-up to #83 which allows global assignments to count as "reads" for the sake of marking unused variables. Demonstrates the fix to #89
I added 8611e83 to make sure the case you mentioned above is covered by tests. Please let me know if you find a problem with it!
No branches or pull requests
will report:
Unused global variable $test.
But it isn't unused, since we assign a new value to it.
The text was updated successfully, but these errors were encountered: