Open cracksalad opened 9 months ago
It happens a lot to me, but it's very hard to reproduce. Mostly it happens when I hit Ctrl+S then Ctrl+Shift+O while save is unfinished, or when the file is being validated after some change. It's quite random, arbitrary, it happens in many files.
yeah, not only here. Auto generated getter/setter completely ignore FQN's . Probably due same reason
I'll take a look
Describe the bug
When the setting PHP > Editor > Save Actions > Organize use statements is on and you use
true
in a namespaced class, eclipse/PDT will add a use statementuse const False\MyClass\true;
on save. This use statement can not be resolved and thereby effectivly kills the class.Describe the eclipse environment
Tested in eclipse 2023-06 and 2023-09. PDT 8.0 and 8.1. My project uses squizlabs/php_codesniffer as a composer dependency. If I uninstall it, the falsy use statements are gone!
Describe your system
To Reproduce
true
in itExpected behavior
use statements should generally be added, but not if they are not needed and can not be resolved.
Workaround
use const False\\MyClass\\true;\n
with empty string - everytime you change a file.