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

Trigger dispatch even when only legacy hooks #4962

Merged

Conversation

adrienlucas
Copy link
Contributor

Hey ! With the new EventDispatcher mechanism there is an issue when there are only legacy hooks registered for the AfterMethodCallAnalysis and AfterClassLikeVisit handlers : the dispatch does not occur.

@adrienlucas adrienlucas force-pushed the dispatch-even-when-only-legacy-hook branch from 372f5c7 to b41f3a5 Compare January 8, 2021 10:48
@orklah
Copy link
Collaborator

orklah commented Jan 8, 2021

Ouch, good catch, thanks!

@adrienlucas adrienlucas force-pushed the dispatch-even-when-only-legacy-hook branch from b41f3a5 to 56a7115 Compare January 8, 2021 18:47
@adrienlucas
Copy link
Contributor Author

Should we also make private all the other properties of EventDispatcher ? It would require a little rework on the PluginTest though.

@muglug muglug merged commit 493c57e into vimeo:master Jan 9, 2021
@muglug
Copy link
Collaborator

muglug commented Jan 9, 2021

Thanks!

danog pushed a commit to danog/psalm that referenced this pull request Jan 29, 2021
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

Successfully merging this pull request may close these issues.

None yet

3 participants