This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 215250 - Autocompletion does not work for static members in relative namespaces
Summary: Autocompletion does not work for static members in relative namespaces
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1.2
Hardware: All All
: P2 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-08 14:31 UTC by ru_lex
Modified: 2012-07-09 07:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ru_lex 2012-07-08 14:31:19 UTC
Product Version: NetBeans IDE 7.1.2 (Build 201204101705)
auto-completion does not work for static members in relative namespace usage.
Example:
<---- MockClass.php

<?php
namespace Issue\Case1;
class MockClass{
    /**
     * @return MockClass 
     */
    static function factory(){
        
	}
    public function run(){
       
    }
}
?>

<---- test.php

<?php
/**
 * Bug report
 * NetBeans version 7.1.2
 * @author Shulman A.V.
 */
    namespace Issue;
   //Codewalking (ctrl+coursor) don't work at "MockClass::factory", but work at "run"
    Case1\MockClass::factory()->run();        
   //Codewalking (ctrl+coursor)  work currectly
    \Issue\Case1\MockClass::factory()->run(); 
    Case1\MockClass:: // <-- ctrl+space = no suddestions
?>

it is same this bug: http://netbeans.org/bugzilla/show_bug.cgi?id=206521
Comment 1 Ondrej Brejla 2012-07-09 07:37:09 UTC
Everything works properly for me in 7.2.

And:

//Codewalking (ctrl+coursor) don't work at "MockClass::factory", but work at"run"

can't work, you have to use: Case1\MockClass::factory();

Thanks for your report.