Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support HTTPlug 2 / PSR-18 #777

Merged
merged 14 commits into from
Feb 25, 2019
Merged

Support HTTPlug 2 / PSR-18 #777

merged 14 commits into from
Feb 25, 2019

Conversation

Jean85
Copy link
Collaborator

@Jean85 Jean85 commented Feb 22, 2019

With this PR, I allow the usage of HTTPlug 2, that is PSR-18 compatible.

Unfortunately, the Curl client that uses HTTPlug 2 will be a new major (2.0), which hasn't released yet, so I've added a dedicated CI job to test it explicitly, replacing it with the Guzzle adapter.

@Jean85 Jean85 mentioned this pull request Feb 23, 2019
tests/phpt/out_of_memory.phpt Show resolved Hide resolved
tests/phpt/out_of_memory.phpt Outdated Show resolved Hide resolved
tests/MockClientStrategy.php Outdated Show resolved Hide resolved
tests/MockClientStrategy.php Outdated Show resolved Hide resolved
composer.json Outdated Show resolved Hide resolved
CURLOPT_PROXY => $this->options->getHttpProxy(),
]);
} else {
if (class_exists(HttpCurlClient::class)) {
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be ! 🤔 ?

Suggested change
if (class_exists(HttpCurlClient::class)) {
if (!class_exists(HttpCurlClient::class)) {

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch!

@HazAT HazAT merged commit ef58615 into master Feb 25, 2019
@HazAT HazAT deleted the httplug-2 branch February 25, 2019 07:54
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants