.phpstorm.meta.php: Autocomplete method argument with object properties


Using PHPStorm Meta, is there any way to get a method argument autocompleted with a list of object properties ?

For example, having this class:

class Foo
public $a;
public $b;
public $c;

public function doSomething($attr) {
// ...

$foo = new Foo();

Is there a way to get "a", "b" and "c" suggested at caret?

Thank you.

1 comment
Comment actions Permalink

Basically, the "expected arguments" is the direction to look at:



However, I am not sure if there is any way to pass class properties there.


Please sign in to leave a comment.