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 207127 - Code completion doesn't work for static methods with namespaces
Summary: Code completion doesn't work for static methods with namespaces
Status: RESOLVED DUPLICATE of bug 206521
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1
Hardware: PC Windows 7 x64
: P4 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-10 14:37 UTC by Anakonda
Modified: 2012-01-10 14:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Simple, minimal project (1.58 KB, application/x-zip-compressed)
2012-01-10 14:37 UTC, Anakonda
Details
Screenshot (148.91 KB, image/png)
2012-01-10 14:40 UTC, Anakonda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anakonda 2012-01-10 14:37:48 UTC
Created attachment 114766 [details]
Simple, minimal project

Code completion doesn't work for static methods with namespaces in PHP 5.3

*** index.php:

include 'Test.php';
include 'TestNamespaced.php';

$n = new \Main\TestNamespaced();
$n->SimpleMethod(); // code completion ok

Test::StaticMethod(); // code completion ok
\Main\TestNamespaced::                   // code completion doesn't work


*** Test.php:

class Test
{
    static function StaticMethod()
    {
        return 0;
    }
}

*** TestNamespaced.php:

namespace Main;

class TestNamespaced
{
    static function StaticMethod()
    {
        return 0;
    }

    public function SimpleMethod()
    {
        return 1;
    }
}
Comment 1 Anakonda 2012-01-10 14:40:13 UTC
Created attachment 114767 [details]
Screenshot
Comment 2 Ondrej Brejla 2012-01-10 14:42:47 UTC

*** This bug has been marked as a duplicate of bug 206521 ***