Skip to content

Conversation

@demyan112rv
Copy link

Q A
Deprecations? yes

What's in this PR?

Add ClientInterface return typehint for php-http/httplug >= 2.4

Why?

Return type of method ClientFactory::createClient() has typehint with deprecated interface Http\Client\HttpClient:
since version 2.4, use Psr\Http\Client\ClientInterface instead

Copy link
Collaborator

@dbu dbu left a comment

Choose a reason for hiding this comment

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

correct. actually with httplug 2, the httplug HttpClient interface extends the psr ClientInterface, but if somebody relies on still getting an old httplug instance the old annotation still makes sense.

@dbu dbu merged commit c4ecf99 into php-http:1.x Aug 31, 2023
@dbu
Copy link
Collaborator

dbu commented Aug 31, 2023

@dbu
Copy link
Collaborator

dbu commented Aug 31, 2023

thanks a lot for the contribution!

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