-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] execute tests with the full range of supported Messenger component releases #47232
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
[FrameworkBundle] execute tests with the full range of supported Messenger component releases #47232
Conversation
023514f
to
1bc150f
Compare
…leases The conflict rule does not exclude the 5.4 and 6.0 releases of the Messenger component. So we should make sure that we also run tests against these versions.
1bc150f
to
e912f85
Compare
if (isset($tagAttributes['method'])) { | ||
throw new LogicException(sprintf('AsMessageHandler attribute cannot declare a method on "%s::%s()".', $reflector->class, $reflector->name)); | ||
|
||
if (class_exists(SerializedMessageStamp::class)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alternatively, we would have to conflict with symfony/messenger
before 6.1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As 6.1 is already released, I think having a condition is ok. On 6.2, we can then remove the condition and add a conflict.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was my reasoning too for choosing this solution. Will be simplified on 6.2
with #47237.
if (isset($tagAttributes['method'])) { | ||
throw new LogicException(sprintf('AsMessageHandler attribute cannot declare a method on "%s::%s()".', $reflector->class, $reflector->name)); | ||
|
||
if (class_exists(SerializedMessageStamp::class)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As 6.1 is already released, I think having a condition is ok. On 6.2, we can then remove the condition and add a conflict.
Thank you @xabbuh. |
…(xabbuh) This PR was merged into the 6.2 branch. Discussion ---------- [FrameworkBundle] conflict with symfony/messenger < 6.2 | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | #47232 (comment) | License | MIT | Doc PR | Commits ------- 4d6f215 conflict with symfony/messenger < 6.2
The conflict rule does not exclude the 5.4 and 6.0 releases of the Messenger component. So we should make sure that we also run tests against these versions.