Event methods: jump to definition override
fprochazka opened this issue · 0 comments
fprochazka commented
Let's have the following class
/**
* @method onFilterBrand(BrandsControl $self, $brandNameId)
*/
class BrandsControl extends BaseControl
{
/** @var array */
public $onFilterBrand = [];
public function handleToggleFilter($brandNameId)
{
$this->onFilterBrand($this, $brandNameId);
}
}
- I have an event property
$onFilterBrand
- I have phpdoc definition so I can have arguments autocompletion and validation
@method onFilterBrand()
- I call the event virtual method
Now if i run "Go to > Declaration" on the method call, it goes to the phpdoc.
Would it be possible to go to the property instead?