Last active
December 22, 2015 10:39
-
-
Save SCIF/6460230 to your computer and use it in GitHub Desktop.
Very strange behavior of most popular IDE's
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 :( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Phpstorm 130.1639: http://i.imgur.com/RqFeVTI.png
Phpstorm 131.61: same :(