Community
Participate
Working Groups
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
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