| Summary: | instantiating a new class by using a string variable - missing code assist | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Gadi Goldbarg <gadi> |
| Component: | PDT | Assignee: | PHP Core <php.core-inbox> |
| Status: | NEW --- | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | ganoro, kalin.a |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
per our internal discussion, I set this as enhancement. Currently we usually don't support real time evaluation when calculating CA *** Bug 372454 has been marked as a duplicate of this bug. *** |
e.g: <?php class testCA { protected $app1_name='deployment_app_drupal_7_newvhost'; public function setup() { $x = new deployment_app_drupal_7_newvhost; $x->kuku(); // OK $y = new $this->app1_name; $y-> // No Code Assist } } class deployment_app_drupal_7_newvhost { public function kuku() { return true; } } ?> See the $y = new $this->app1_name; --> runs as expected