-
Notifications
You must be signed in to change notification settings - Fork 144
[TASK] Deprecate method forwarding OutputFormat
to OutputFormatter
#894
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
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.
I think we need to provide chaining methods before we can do this.
If you edit __call()
to throw an exception in all cases, there are many test failures.
The chaining methods required are clearly-defined by OutputFormatter
. There aren't that many.
I think this would be easier and more preferable than rewriting the tests and changing the API - bear in mind that all users would have to expend similar effort rewriting their code as we would rewriting the tests, if we were to change the API.
When they are all in place, |
I've updated the calls in #898. |
I consider the |
7d695b6
to
ff42244
Compare
I agree, I think. Which is all the more reason to add these methods to |
... unless these methods are all meant for internal use. Will need to check... |
ff42244
to
898fac5
Compare
I think that makes it clear. These are all (only) used by the internal |
21d38b2
to
04a3c1a
Compare
Ping @sabberworm - we need your input here in order to proceed. |
8e900ef
to
b4d7c71
Compare
079c8f3
to
a22aeb4
Compare
3112cbd
to
c81ffd1
Compare
Please let's get this merged. @sabberworm And input from your side? @JakeQZ If there's no input from @sabberworm, please let's move this forward nonetheless. |
c81ffd1
to
d4959aa
Compare
Instead, the corresponding method on the formatter should be called directly. This increases type safety and helps static code analysis. Also, it makes the code easier to understand.
d4959aa
to
255698a
Compare
This is the V8.x backport of #894.
Instead, the corresponding method on the formatter should be called directly.
This increases type safety and helps static code analysis. Also, it makes the code easier to understand.