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

Bug 334451

Summary: Code Assist not working inside class method when assigning to a variable
Product: z_Archived Reporter: Mauro Molinari <mauromol>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P1 CC: silviya
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Mauro Molinari CLA 2011-01-15 04:36:24 EST
Create a PHP file and write the following:

class A
{
  /**
   * @param DateTime $date
   */
  public function a($date)
  {
    $date->for|
  }
}

Invoke code completion at "|": it works correctly, suggesting DateTime::format().

Now, try to do the same in this case:

class A
{
  /**
   * @param DateTime $date
   */
  public function a($date)
  {
    $b = $date->for|
  }
}

Invoke code completion at "|": it does not work, no suggestions available for DateTime methods.
Comment 1 Zhongwei Zhao CLA 2011-04-14 00:32:28 EDT
has been fixed already in head
Comment 2 Mauro Molinari CLA 2011-07-01 13:17:30 EDT
Verified in PDT 3.0.0, thanks!
Comment 3 Sylvia Tancheva CLA 2015-06-22 09:39:45 EDT
Closing