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.
For example in this code: <?php class User { private $name; function __construct($name) { $this->name = $name; } public function getName() { return $this->name; } } $test = new Us| ?> Invoke cc at possition marked |. The User class is offered. But the cc complete only "User". It should be "User(|)" in the case that there is defined constructor with parameter/s. If there is not constructor with parameter, then it hould complete "User()|" or as now "User|".
it shouldn't be too difficult to implement
In Java code also work ctrl+p shortcut which show all constructor parameters. This would be great for PHP also.
tprochazka: see issue 132387
It should be completed with (|) only if the constructor has a parameter.
I know that PHP allow write $a = new User, but I preffer $a = new User() also when constructor has no parrametr. Maybe bacause I'm Java programator also. But this is not only my opinion. For example Zend Studio for Eclipse also add () in all case. And this is official IDE from Zend corporation.
*** Issue 150867 has been marked as a duplicate of this issue. ***
multiple duplicates, upgrading to P2
*** Issue 154159 has been marked as a duplicate of this issue. ***
Fixed: http://hg.netbeans.org/main/rev/cdfd991046cc index version was increased!
Integrated into 'main-golden', will be available in build *200812050201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/cdfd991046cc User: Radek Matous <rmatous@netbeans.org> Log: #142289 CC should finish constructor smarter
Verified