-
Notifications
You must be signed in to change notification settings - Fork 823
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
API Deprecate FormField Value #11551
API Deprecate FormField Value #11551
Conversation
8bcc796
to
825cf40
Compare
075eb8f
to
be6374a
Compare
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.
If we're telling people to use the new methods instead, we need to also implement them in all the places that currently override Value()
so that they get the correct value when calling methods on those classes.
The easier way would be to reverse your implementation so that getFormattedValue()
for now calls return $this->Value();
which means overridden versions of Value()
also apply that overridden value when calling getFormattedValue()
.
I'd do the latter personally as it's a lot less work and less prone to have unexpected regressions.
db88a5f
to
7e88a6d
Compare
Spoke offline and agreed to remove the aliases and reverted the deprecation message to how it was. |
7e88a6d
to
06b7a8e
Compare
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.
LGTM.
Issue #11468