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

Skip to content

Conversation

@praswicaksono
Copy link
Contributor

@praswicaksono praswicaksono commented Dec 29, 2024

Q A
Branch? 7.2
Bug fix? yes
New feature? no
Deprecations? no
Issues -
License MIT

Fix unix socket connection when using amphp/http-client v5

@nicolas-grekas


if ($options['proxy']) {
$proxyUrl = parse_url($options['proxy']['url']);
$proxySocket = new SocketAddress($proxyUrl['host'], $proxyUrl['port']);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this class are not exist in v5

@praswicaksono
Copy link
Contributor Author

@nicolas-grekas psalm check fail because it run using php 8.2 and amphp/httpclient v4, should I surpress undefined method error?

@nicolas-grekas
Copy link
Member

No need to, just ignore the message.

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

I moved the test case to HttpClientTestCase to that we run it with curl also.

@nicolas-grekas
Copy link
Member

Thank you @praswicaksono.

@nicolas-grekas nicolas-grekas merged commit 89cd804 into symfony:7.2 Jan 1, 2025
9 of 11 checks passed
@fabpot fabpot mentioned this pull request Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants