| Summary: | No type-inference for return types with use statements | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Robert Gruendler <robert> | ||||||
| Component: | PDT | Assignee: | PHP Core <php.core-inbox> | ||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P1 | CC: | ganoro, kalin.a, zhaozhongwei | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
Created attachment 201353 [details]
reproducable test case
fixed in head Still reproducible. No relevant item is suggested. Created attachment 206638 [details]
new SomeClass
the original SomeClass does not have any methods or public fields,so no is suggested. Please the attached file to test. Verified fixed. Closing... Kalin Yanev kalin.a@zend.com |
Build Identifier: I20110613-1736 type inference does not work for methods annotated with PHPdocs which return a class imported through a "use" statement. ie: use Foo\Bar\SomeClass; /** * @return SomeClass * */ public function getSome() { return new SomeClass(); } Reproducible: Always Steps to Reproduce: Create a PDT project, import the 3 attached files, try to complete the $some variable in Test.php