[Messenger] AsMessageHandler
attribute on methods do not work anymore
#50202
Labels
8000
AsMessageHandler
attribute on methods do not work anymore
#50202
Symfony version(s) affected
6.3.0-BETA1
Description
Hey 👋
My friend @welcoMattic told me Symfony 6.3.0-BETA1 got out and I had to test if there is some regression issues and found one with Messenger component.
When you make a Handler, if you do:
You can use it freely and it will work like a charm.
But if you do:
During cache warmup you will have the following error:

How to reproduce
See https://github.com/Korbeil/reproducer-63-messenger-handler/ for a simple reproducer.
And more specifically https://github.com/Korbeil/reproducer-63-messenger-handler/blob/main/src/Messenger/MessageHandler.php since it's where the issue is.
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: