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
Describe the bug The following functions are identical:
function a() { static $cache = null; if ($cache === null) { $cache = true; } return $cache; } function b() { static $cache = null; return $cache ??= true; }
In function b() PDT marks the $cache variable as unused.
b()
$cache
Describe the eclipse environment Eclipse 2023-06, PDT 8.1.0.202307051059
Describe your system
To Reproduce see above
Expected behavior There should be no warning
Screenshots
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
The following functions are identical:
In function
b()
PDT marks the$cache
variable as unused.Describe the eclipse environment
Eclipse 2023-06, PDT 8.1.0.202307051059
Describe your system
To Reproduce
see above
Expected behavior
There should be no warning
Screenshots
The text was updated successfully, but these errors were encountered: