Closed andrew-svirin closed 3 years ago
Hi. Do you mean something like that https://github.com/klesun/deep-assoc-completion/issues/50 per chance?
There is also this PSALM syntax supported
/** @psalm-param 'aaaa'|'bbbb' $field */
static function rororor($field)
{
}
Though it does not seem to work for completion when you call the method... Guess I'll fix that in some of the upcoming releases
Yes. It is great! Can be added some comment for arguments? like on screen?
This way autocomplete is working. Anyway i can do like here, if comments for list is not passable.
Hm, conceptually, this format is supposed to work as well:
/**
* @param $field =
* 'client-address' ?: // comment 1
* 'client-data' // comment 2
*/
But it does not seem to work. I guess I'll fix that in context of this ticket. Not sure @
keywords won't break it still, though, so I guess your format is the way to go...
Following will be fixed in the next release:
Your widget helps a lot. Thanks. I have found that widget works very good with arrays. Does it possible to autocomplete string argument?
public function(string $thisArg)