Am I missing something? Follow
Longtime Java dev, so I'm used to using Eclipse and clicking through objects, seeing the class inplementations and comments as well as auto complete on methods.
It seems with PHP Storm (and PDT/Sublime etc.) that autocompletion is really limited.
eg. Using Laravel I've got a class/method Input::get:
If I manually look, hit Open I can find Input and the method get just fine:
Am I missing something here?
Please sign in to leave a comment.
Hi there,
Please show FULL content of such problematic file.
I think -- yes.
Most likely -- https://github.com/danielboendergaard/laravel-helpers
Input Code:
https://github.com/Pasvaz/laravel-skeleton/blob/master/laravel/input.php
Brands Code:
Thank you.
Please see my updated answer.
The code completion in PhpStorm (and other tools mentioned by you) is NOT limited in this regard -- it's the way how this particular framework built/works (class autoloading).
"Input" class is indeed unknown to the IDE, because:
Because of that, you need to tell IDE what "Input" class really is. The aforementioned "helper" file will solve it.
Thanks a lot, that helped a lot.
Ctrl+Click does take me to the ide_helper.php file rather than the implementation class directly but I guess it's liveable. One downside of the autocomplete though is that PHPStorm adds the full namespace rather than the shortened format which Laravel supports.
Still, a major improvement. More info I found in case it helps anyone:
http://forums.laravel.io/viewtopic.php?id=742