Bug 354254 - instantiating a new class by using a string variable - missing code assist
Summary: instantiating a new class by using a string variable - missing code assist
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 372454 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-08-09 10:12 EDT by Gadi Goldbarg CLA
Modified: 2020-05-14 10:16 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gadi Goldbarg CLA 2011-08-09 10:12:40 EDT
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
Comment 1 Roy Ganor CLA 2011-08-09 11:15:48 EDT
per our internal discussion, I set this as enhancement.
Currently we usually don't support real time evaluation when calculating CA
Comment 2 Dawid Pakula CLA 2018-02-09 07:26:43 EST
*** Bug 372454 has been marked as a duplicate of this bug. ***