Hi all, today we would like to introduce you a new feature which will be, we hope, very helpful for you! It makes pre-filling of method/function parameters really smart.
Let's start with an old behaviour. If you had a method with parameters described in PHPDoc, code completion of this function didn't care about that. It suggested you just the names of it's parameters, even though you had your own variables of a valid type declared right before code completion invocation.
It was really annoying. But now, code completion suggests you your valid variables (of desired type), so you don't have to rewrite method calls everytime you use code completion. Isn't that great? I think it is! So now that suggestion looks like this:
And the last thing. If you have your variables named exactly as parameters of suggested function and they are of desired types, you don't have to care about positions of these variables in invocation scope. They are used always, even though some other variables of desired types exist closer your completion invocation.
And, of course, it works for PHP built-in functions as well.