-
Notifications
You must be signed in to change notification settings - Fork 12
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 declaration via list
inside foreach
not recognized
#33
Comments
Thanks for the report! |
I think the fix actually broke used variables check inside In my code I have: foreach ($callbacks as $callback) {
$callback();
} Which causes a:
But I could notify that there are a lot of things that now raise unused variables false positive for variable declared by |
Not sure if I should I open another issue, or maybe you could re-open this. |
D'oh! I guess these unit tests are not good enough to prevent regressions. 😭 Well, we'll make them better. |
Sorry about that. There's still one bug I'm tracking in #37 but 2.0.7 should fix the major bug. |
Following is perfectly valid PHP 5.5+ code:
However, it raises the following warnings:
The text was updated successfully, but these errors were encountered: