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.
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.
*** This issue has been marked as a duplicate of 141652 ***
Verified