-
Notifications
You must be signed in to change notification settings - Fork 3.4k
More clear assignment. #18869
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
base: 6.x
Are you sure you want to change the base?
More clear assignment. #18869
Conversation
|
The only other thing I can think of to clean this up, is to create a separate class like so but this needs to be done for each adjusted class since the options are different - so not sure if this is actually cleaner. But in general I am definitely in favour of removing these kind of dynamic property assignments since its easier to find stuff. |
Or we can kill this options argument and make people use the dedicated methods already available for them 😁 |
Oh yes, that would great. But it would require some rector/upgrade tool automation to make that upgrade it easier. |
We could introduce the new call style in 5.x via changes in bake, docs, and with rector rules. Deprecations could be emit when an options array is used as well. |
markstory
left a comment
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.
This seems like something we could safely do in 5.x, or am I missing something?
Yes, it could be done in a new minor with deprecations and updating of baked code. |
|
This looks ok as-is for cleanup. |
Is this something we want to see?