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 - The cc doesn't know about return type from php doc
Summary: The cc doesn't know about return type from php doc
Status: VERIFIED DUPLICATE of bug 141652
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Tomasz Slota
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-16 12:15 UTC by Petr Pisl
Modified: 2008-10-09 16:42 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 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