| Summary: | /* @var */ completion does not use correct scope | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | sparrow Mising name <wrobel> |
| Component: | PDT | Assignee: | PHP Core <php.core-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P2 | CC: | silviya, zhaozhongwei |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
fixed Full example:
<?php
class Class1 {
function test1() {
;
}
}
class Class2 {
function test2() {
;
}
}
class Class3 {
public function method1()
{
$table = ""; /* @var $table Class1 */
}
public function method2()
{
$table = ""; /* @var $table Class2 */
$table->| //here should propose test2
}
}
Verified. Closing. Ilina Stefanova Thanks, Zhao |
In the following example: public function method1() { $table = ...; /* @var $table Class1 */ ... } public function method2() { $table = ...; /* @var $table Class2 */ $table. ... } completion for the second $table shows method of Class1 instead of Class2