Closure function param class object var dash auto-completion not happening
I'm not sure what it's called when the editor is supposed to auto-add the `>` (greater-than) character after you type the dash (`-`) after an object var (to call a function), but for some reason PHPStorm won't do it within a closure:

Normally typing `$objectVar-` would auto-add the greater-than character right after the dash...
As you can see, Blueprint is a recognized class (shown by hovering over Blueprint):

Hovering over the `$table-` var from within the closure shows that PHPStorm also recognizes it as an object:

Typing the `>` after the dash then hitting Ctrl+Space (Windows, Code Completion > Basic) shows that PHPStorm also recognizes that the var has functions:

So... I'm trying to figure out:
- Why is PHPStorm not auto-generating the `>` (greater-than) character within this context, especially when it recognizes what the var is?
- Is there some sort of ambiguity after the dash within this context that would cause PHPStorm to not know to auto-generate the `>` like it does in other contexts?
I'm open to this being a bug or me not knowing something, but right now I'm questioning my sanity if I'm just maybe remembering the normal behavior incorrectly...
请先登录再写评论。
Hi there,
AFAIK the autotocompletion for `>` is available for `$this-` only and not ordinary variables. So I'm not sure how it can generate it for one variable and unable to do so for another (with exception of the aforementioned $this).
https://youtrack.jetbrains.com/issue/WI-28351
Why is it only available for `$this-`?! That seems insane. That and other objects behave the same way with properties and methods, I don't understand why JetBrains would distinguish the two this way.
Because there was a request to implement that for `$this-` ONLY -- a ticket from 11 years ago: https://youtrack.jetbrains.com/issue/WI-551.
And that aforementioned ticket for other objects was requested much later .. and still not implemented (for quite few years ... which is disappointing). Why not yet -- ask devs there.
Side note: As you may see from that ticket -- not everybody is happy about such `-` to `->` autocompletion .. even though IDE eats extra typed `>` ... and devs do not want to introduce an option to make it completely optional.
Hmm, strange they wouldn't just implement it for all objects and follow the request to the letter... I've seen them broaden a request for sensible reasons, I wonder why this case was different.