Community
Participate
Working Groups
Build Identifier: 20100617-1415 Typginting a variable using the @var comment syntax does not work for namespaced classes. Neither for classes imported by use nor full qualified class names. Reproducible: Always Steps to Reproduce: Assume that \foo\MyClass is declared an available: FQ class names dont work: <?php /* @var $foo \foo\MyClass */ $foo->| ?> Imported class with use does not work: <?php use foo; /* @var $foo foo\MyClass */ $foo->| ?> <?php use foo\MyClass; /* @var $foo MyClass */ $foo->| ?> But this works: <?php use foo; $foo = new foo\MyClass(); $foo->| ?> <?php $foo = new \foo\MyClass(); $foo->| ?>
Created attachment 180639 [details] Example of broken autocompletion
Created attachment 181056 [details] patch
Could you include the provided patch into the next milestone or update please. Code completion is one of the core features an IDE has. I need this update asap. Thanks.
Any news on this issue? In pdt-Update-M201010110334 it does not work for @var-comments in procedural PHP as well as in namespaces class-methods. Curiously it works in non-namespaced class-methods.
(In reply to comment #4) > Any news on this issue? > > In pdt-Update-M201010110334 it does not work for @var-comments in procedural > PHP as well as in namespaces class-methods. > Curiously it works in non-namespaced class-methods. According to the process we follow, the patch needs to be reviewed and then committed to head. We will then release an update site for Indigo...
(In reply to comment #5) > (In reply to comment #4) > > Any news on this issue? > > > > In pdt-Update-M201010110334 it does not work for @var-comments in procedural > > PHP as well as in namespaces class-methods. > > Curiously it works in non-namespaced class-methods. > > According to the process we follow, the patch needs to be reviewed and then > committed to head. We will then release an update site for Indigo... So if I understand correctly we don't get a patch for the Helios release? Has this patch been reviewed yet?
(In reply to comment #6) > So if I understand correctly we don't get a patch for the Helios release? > Has this patch been reviewed yet? I would appreciate a fix in Helios.
change status
*** Bug 327511 has been marked as a duplicate of this bug. ***
Verified. Closing...