Community
Participate
Working Groups
The new "organize use statements" introduced in pdt 5.0.0 actually removes "too much". It removes use statements which are only used in phpdoc (e.g. to document return statements). From the perspective of bare php code execution this won't be a problem, however tools like phpdocumentor or sami aren't able to find the required types anymore. Also pdt editor itself warns, it cannot resolve to a type.
Yes, and there is also work to do to correct the import validator and the use statement injector (for the "organize use statements" feature), specially to support group use declarations and mixed use declarations. It will hopefully be done in the 5.2 release. Thierry.
What is the status here? Currently there is version 6.1 and the error still exists.
Hi Christian, I made some work in this area some months ago, so the state should be better, but not resolved. I think it would be nice to update this bug report with some examples, based on latest PDT snapshots, and see what still need to be done (and what is already fixed). Also I'm quite busy lately, so it will take me some time to look deeply in this bug report again, sorry :( Thierry.
Hi, finally, after more work, this bug should be fixed. If there are still cases where use statements are wrongly removed, please fill another bug report ;) Thierry.