Skip to content

Final #19

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

Merged
merged 1 commit into from
Apr 2, 2016
Merged

Final #19

merged 1 commit into from
Apr 2, 2016

Conversation

sagikazarmark
Copy link
Member

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Related tickets fixes #18
License MIT

What's in this PR?

Makes some clients final, adds todos for clients becoming final in the next major version.

Why?

Cleans the confusion about clients being extended or not.

Checklist

  • Updated CHANGELOG.md to describe BC breaks / deprecations | new feature | bugfix

*/
public function sendRequest(RequestInterface $request)
{
// TODO: Implement sendRequest() method.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

? and why is this class embedded in the spec file?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a stub. We need something which implements both interfaces, and it can't be final.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then lets call it StubCombinedClient and not write TODO here but just have empty body. and a class phpdoc that says this is a stub for testing.

@dbu
Copy link
Contributor

dbu commented Mar 31, 2016

lets add an issue in the 2.0 milestone to remember to make them final and solve the TODO.

@sagikazarmark sagikazarmark mentioned this pull request Mar 31, 2016
9 tasks
@sagikazarmark sagikazarmark force-pushed the final branch 2 times, most recently from 94537ea to c8863d6 Compare March 31, 2016 20:46
@@ -11,7 +11,7 @@
*
* @author Joel Wurtz <[email protected]>
*/
class FlexibleHttpClient implements HttpClient, HttpAsyncClient
final class FlexibleHttpClient implements HttpClient, HttpAsyncClient
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did we want to rename this to CombinedHttpClient now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't know, rename is discussed in #16, although no better name came up yet IMO.

Make not-yet-released clients final

Update changelog

Remove TODOs in favor of #20
@sagikazarmark
Copy link
Member Author

Didn't need the stub after all.

@sagikazarmark sagikazarmark merged commit 3e25b9f into master Apr 2, 2016
@sagikazarmark sagikazarmark deleted the final branch April 2, 2016 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make clients final
2 participants