Replace one or multiple Arguments with a new Object #6791
Unanswered
alexander-schranz
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hi, thanks for sharing. There is no rule to handle this, as it's very specific job not typical for BC breaks in open source:
Yet, there is a way to handle this. Create a custom rule, hook on MethodCall and change what you need. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to refractor service to message bus, I already was able renaming the the method and call the service bus. What I'm stuck with is to replace an argument with a wrapped new constructor.
Additional it would be great if possible to depend on the argument numbers which message should be instance and change the argument orders to the new method e.g.:
I did not yet found a refractor rule to achieve this. But I think I did just oversee the correct rule. Would be great if somebody could show me the right way to achieve this.
Beta Was this translation helpful? Give feedback.
All reactions