Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event methods: jump to definition override #15

Closed
fprochazka opened this issue May 13, 2015 · 0 comments
Closed

Event methods: jump to definition override #15

fprochazka opened this issue May 13, 2015 · 0 comments

Comments

@fprochazka
Copy link
Collaborator

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?

@matej21 matej21 closed this as completed in 7376dfa Aug 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant