Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354254

Summary: instantiating a new class by using a string variable - missing code assist
Product: z_Archived Reporter: Gadi Goldbarg <gadi>
Component: PDTAssignee: 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:

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. ***