pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/php-http/socket-client/pull/70

hubassets.com/assets/actions-df19348d1682334d.css" /> fix: Typehint the Stream class and fix deprecated interface HttpClient by tarekdj · Pull Request #70 · php-http/socket-client · GitHub
Skip to content

fix: Typehint the Stream class and fix deprecated interface HttpClient#70

Open
tarekdj wants to merge 2 commits intophp-http:2.xfrom
tarekdj:fix/typehint
Open

fix: Typehint the Stream class and fix deprecated interface HttpClient#70
tarekdj wants to merge 2 commits intophp-http:2.xfrom
tarekdj:fix/typehint

Conversation

@tarekdj
Copy link

@tarekdj tarekdj commented Oct 23, 2023

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

What's in this PR?

  • Fix the type hinting of Stream class in order to make it compatible with StreamInterface
  • Replace depreacted interface HttpClient

Why?

Fix the compatibility of Stream class with the StreamInterface

Checklist

  • Updated CHANGELOG.md to describe BC breaks / deprecations | new feature | bugfix
  • Documentation pull request created (if not simply a bugfix)

To Do

  • Update CHANGELOG.md

@dbu
Copy link
Contributor

dbu commented Jan 6, 2024

we could switch this client to be a PSR-18 client. but that would mean somebody would need to commit to maintain this client. there are a bunch of http clients around: symfony, guzzle, buzz, the php-http/curl-client and some others.

is there value in keeping the socket client alive?

@dbu
Copy link
Contributor

dbu commented Jan 6, 2024

if we decide to keep this maintained, we should adjust the socket-client.rst page in the documentation, reverting php-http/documentation#310 (comment) and maybe add more information.

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.

2 participants

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy