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
Static variables in functions always trigger an "Undefined variable" diagnostic:
function foo() { static $var = 0; $var++; // Undefined variable "$var" }
Might be worth mentioning that a similar issue was previously reported (#2237) related to using static with class properties.
static
The text was updated successfully, but these errors were encountered:
FAiling test for gh-2311
549c4f2
Gh 2311: Do not report statically declared var as undefined (#2312)
4aa9a78
* FAiling test for gh-2311 * Do not report statically declared variables as undefined
Fixed in #2312
Sorry, something went wrong.
No branches or pull requests
Static variables in functions always trigger an "Undefined variable" diagnostic:
Might be worth mentioning that a similar issue was previously reported (#2237) related to using
static
with class properties.The text was updated successfully, but these errors were encountered: