Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334451 - Code Assist not working inside class method when assigning to a variable
Summary: Code Assist not working inside class method when assigning to a variable
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P1 major (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-15 04:36 EST by Mauro Molinari CLA
Modified: 2020-05-14 10:16 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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