Skip to content

Instantly share code, notes, and snippets.

@SCIF
Last active December 22, 2015 10:39
Show Gist options
  • Save SCIF/6460230 to your computer and use it in GitHub Desktop.
Save SCIF/6460230 to your computer and use it in GitHub Desktop.
Very strange behavior of most popular IDE's
class t1
{
/**
* According to http://www.phpdoc.org/docs/latest/for-users/phpdoc/types.html#keyword «self» must be correct in that issue. Phpstorm works correct only if sets static, netbeans/aptana doesn't work correct
*
* @return self
*/
public function test()
{
return $this;
}
}
class t2 extends t1
{
public function test2()
{
}
}
$t = new t2();
// Try to see test() and test2() in autocompletion list:
$t->test()->
// But didn't see expected :(
@SCIF
Copy link
Author

SCIF commented Sep 6, 2013

Phpstorm 130.1639: http://i.imgur.com/RqFeVTI.png
Phpstorm 131.61: same :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment