-
Notifications
You must be signed in to change notification settings - Fork 148
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
[TASK] Avoid Hungarian notation in a class #704
Conversation
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.
According to the deprecation policy discussion - #453 (comment) - we should provide magic methods to access the new property names via the old names, marking the old names deprecated.
The PublicPropertyDeprecationTrait class from TYPO3 along with associated TestCase look ideal for the job, assuming the licence is compatible. |
The renamed properties are |
I think we should also make them
I think I've spotted a mistake in the class: |
Looking again, this only provides for deprecation without renaming (i.e. changing to access to |
Marking as draft for now - I think I'd like to change our policy for public APIs. |
This change does not include any breaking changes.
21e1097
to
80ceae6
Compare
With our new API and deprecation policy in place, I think this is unblocked now. |
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.
With our new API and deprecation policy in place, I think this is unblocked now.
Yes, the API policy says that classes should not be extended, so protected
methods are effectively internal.
This change does not include any breaking changes.