Adds falsy use const False\MyClass\true;
statements when using phpcs
#256
Labels
use const False\MyClass\true;
statements when using phpcs
#256
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.The text was updated successfully, but these errors were encountered: