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.
Take following examples: This one works: class Foo { protected $bar; public function Baz() { $this->bar = new Qux(); $this->bar->... } } And this one not: class Foo { public function Baz() { $this->bar = new Qux(); $this->bar->... } } It used to work so this seems to be a regression.
Using latest stable build (5094) from: http://bertram.netbeans.org:8080/job/PHP-build/
Can you explain me your real use case, where you do this ugly thing? It's a pure hell and bad practise, code which uses this "feature" is almost unmaintainable. I'm not sure if I want to enable this crapy "feature" again.
symfony 1.4, actions.class.php: class mainActions extends sfActions { public function executeRegistration(sfWebRequest $request) { $this->form = new RegistrationForm(); $values = $request->getParameter($this->form->getName()); if($request->isMethod(sfRequest::POST) && $values){ $this->form->bind($values); if($this->form->isValid()){ (...) } } } } and in template registrationSuccess.php autocompletion works for $form: <?php echo $form->... ?> I'm not telling it's good, I just found out it doesn't work anymore ;) The simple workaround for this is using $form variable and set $this->form later.
I was thinking about it and I considered to not implement it for now. Because the simple fix will break Go To Type (in some cases) and it can't be workarounded. This case can be. Someone cas use @property annotation of a class, so CC will work then. Sorry for any inconvenience. I'll leave this issue opened as an enhancement for some other release.