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.
Summary: | Autocompletion doesn't work for not declared object's properties | ||
---|---|---|---|
Product: | php | Reporter: | rozwell |
Component: | Editor | Assignee: | Ondrej Brejla <obrejla> |
Status: | NEW --- | ||
Severity: | normal | CC: | sohorev |
Priority: | P3 | ||
Version: | 7.3 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
rozwell
2012-07-26 14:45:17 UTC
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. |