Skip to content

[FrameworkBundle] Add support for union types on #[AsEventListener] #61252

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

Open
wants to merge 1 commit into
base: 7.4
Choose a base branch
from

Conversation

Fan2Shrek
Copy link
Contributor

Q A
Branch? 7.4
Bug fix? no
New feature? yes
Deprecations? no
Issues Fix #61218
License MIT

This is an alternative implementation to support union types, related to issue #61218 and PR #61222.
It duplicates kernel.event_listener tags.

I'm not sure how to add tests for this — could you advise?

@Fan2Shrek Fan2Shrek force-pushed the fix/as-event-listener-multiple-events branch from 4f33247 to a69f5dd Compare July 27, 2025 20:55
@OskarStark OskarStark changed the title Add support for union types on AsEventListener Add support for union types on #[AsEventListener] Jul 28, 2025
@carsonbot carsonbot changed the title Add support for union types on #[AsEventListener] [FrameworkBundle] Add support for union types on #[AsEventListener] Jul 28, 2025
@derrabus
Copy link
Member

I'm not sure how to add tests for this — could you advise?

There should be tests for the AsEventListener feature already. Have a look at them.

Copy link
Member

@derrabus derrabus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add tests. 🙃

@Fan2Shrek
Copy link
Contributor Author

Hi @derrabus, thanks for the reply!

The only tests I found are in RegisterListenerPassTest. Is that the right place to add mine?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

#[AsEventListener] does not handle union types
4 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy