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
![Bildschirmfoto 2023-07-17 um 12 08 54](https://private-user-images.githubusercontent.com/425166/253910214-8e1682ba-94d0-4713-afb8-d625282f3f81.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxNTA5MzYsIm5iZiI6MTcyNjE1MDYzNiwicGF0aCI6Ii80MjUxNjYvMjUzOTEwMjE0LThlMTY4MmJhLTk0ZDAtNDcxMy1hZmI4LWQ2MjUyODJmM2Y4MS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMlQxNDE3MTZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lYjk3OTYwNzMzZmJmMDU3YjM4Mzg3OTE4YTBkMTVlNTNlYmIzZTAwOTJjY2Y5OTc0OWE3NTkxYmEyZTM3NzQ1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.-WSBak_R0TJoVqiAHw-fP7rCU4pv6WOyGyrxutOI1ao)
The text was updated successfully, but these errors were encountered: