| Summary: | Code Assist not working inside class method when assigning to a variable | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Mauro Molinari <mauromol> |
| Component: | PDT | Assignee: | 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: | |||
has been fixed already in head Verified in PDT 3.0.0, thanks! Closing |
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.