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

Summary: Autocompletion does not work for static members in relative namespaces
Product: php Reporter: ru_lex
Component: EditorAssignee: Ondrej Brejla <obrejla>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P2    
Version: 7.1.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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.