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 144161

Summary: The cc doesn't know about return type from php doc
Product: php Reporter: Petr Pisl <ppisl>
Component: EditorAssignee: Tomasz Slota <tslota>
Status: VERIFIED DUPLICATE    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Petr Pisl 2008-08-16 12:15:54 UTC
I have this php code:

<?php
class Material {
    private $name;
    private function __construct($name) {
        $this->name = $name;
    }

    /**
     * Creates the material
     * @param string $name
     * @return Material
     */
    static function  create($name) {
        return new Material($name);
    }
    public function getName() {
        return $this->name;
    }
}

echo Material::create("wood")->getName()."\n";
?>

The cc shoulld offer after Material::create("wood")-> the getName() method, because the return type is specified in the
php doc of create() method. But the cc doesn't offer anything.
Comment 1 Tomasz Slota 2008-08-18 12:24:05 UTC

*** This issue has been marked as a duplicate of 141652 ***
Comment 2 Mikhail Matveev 2008-10-09 16:42:51 UTC
Verified