Community
Participate
Working Groups
Hi, step to reproduce: 1. enable the "Organize use statements" option under Preferences >> PHP >> Editor >> Save Actions 2. create following PHP file: <?php namespace A; class MyClass1 { } namespace B; use A\MyClass1; /** * @param MyClass1 $param */ function foo($param) { } ?> 3. save it, you'll get: <?php namespace A; class MyClass1 { } namespace B; /** * * @param MyClass1 $param */ function foo($param) { } ?> The "use A\MyClass1;" line disappeared and there is now a "MyClass1 cannot be resolved to a type" error. This is because type references are not searched for in comments while reorganizing use statements, let's fix that. Thierry.
Duplicate of bug 519064
(In reply to Dawid Pakula from comment #1) > Duplicate of bug 519064 Oh well yes, it seems to be the same problem, totally forgot this one, sorry! :/
New Gerrit change created: https://git.eclipse.org/r/155072
Gerrit change https://git.eclipse.org/r/155072 was merged to [master]. Commit: http://git.eclipse.org/c/pdt/org.eclipse.pdt.git/commit/?id=1e720b3ffdc698c3e9d892262dc13ef9f2bee267
Fixed.