-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Add a section about how to add an argument to a method without breaking BC #17706
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
Conversation
84b7133
to
d187536
Compare
d187536
to
43f5a76
Compare
{ | ||
} | ||
|
||
#. Document the new argument in a PHPDoc:: |
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.
We can mention this must be documented in all child classes.
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.
We should probably also document the strategy to add new methods in an interface
Probably the next to document indeed. |
0422193
to
f068e3c
Compare
Thank you Fabien. |
Our section about BC breaks is too strict in the sense that we do have solutions for some of the things mentioned as not possible.
This PR documents one of them.