Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Remove usage of deprecated class HttplugFactory #20

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
Sep 26, 2023

Conversation

nicolas-grekas
Copy link
Contributor

No description provided.

jbelien
jbelien previously requested changes Aug 6, 2023
Copy link
Member

@jbelien jbelien left a comment

Choose a reason for hiding this comment

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

I'm a bit confused:

@Nyholm Your input is very much welcome here. 😄

@nicolas-grekas
Copy link
Contributor Author

nicolas-grekas commented Aug 6, 2023

Why do we need the addition of php-http/curl-client library ?

Because it's used here:

use Http\Client\Curl\Client as HttplugClient;

Why not use Nyholm\Psr7\Factory\Psr17Factory

Because a factory is meant to provide interop, which is something we don't care about here. Since we depend on nyholm/psr7, we know how a stream should be instantiated.

@jbelien jbelien requested a review from Nyholm August 7, 2023 08:01
Copy link
Member

@Nyholm Nyholm left a comment

Choose a reason for hiding this comment

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

Im happy with the changes.
Interoperability is not a concern of this package since it is "just testing".

@jbelien jbelien merged commit 25893fe into geocoder-php:master Sep 26, 2023
@nicolas-grekas nicolas-grekas deleted the no-stream-factory branch September 26, 2023 14:06
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.

3 participants