diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index c2503db8..a6c1a2c5 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -37,11 +37,11 @@ jobs: symfony-deprecations-helper: "weak" # Test with httplug 1.x clients - - dependencies: "php-http/buzz-adapter:^1.0 php-http/guzzle6-adapter:^1.1.1 php-http/react-adapter:^0.2.1 php-http/socket-client:^1.0" + - dependencies: "php-http/buzz-adapter:^1.0 php-http/guzzle6-adapter:^1.1.1 php-http/react-adapter:^0.2.1" php-version: "7.3" symfony-deprecations-helper: "weak" # Test with httplug 2.x clients - - dependencies: "php-http/guzzle7-adapter php-http/curl-client:^2.0.0 php-http/vcr-plugin:^1.0@dev" + - dependencies: "php-http/guzzle7-adapter php-http/curl-client:^2.0.0 php-http/vcr-plugin:^1.0@dev php-http/socket-client:^2.0" php-version: "7.3" symfony-deprecations-helper: "weak" diff --git a/composer.json b/composer.json index 339e63ce..bce242e9 100644 --- a/composer.json +++ b/composer.json @@ -43,7 +43,8 @@ }, "conflict": { "php-http/guzzle6-adapter": "<1.1", - "php-http/curl-client": "<2.0" + "php-http/curl-client": "<2.0", + "php-http/socket-client": "<2.0" }, "require-dev": { "guzzlehttp/psr7": "^1.7", diff --git a/src/ClientFactory/SocketFactory.php b/src/ClientFactory/SocketFactory.php index 2c3582df..7407f6fb 100644 --- a/src/ClientFactory/SocketFactory.php +++ b/src/ClientFactory/SocketFactory.php @@ -31,6 +31,6 @@ public function createClient(array $config = []) throw new \LogicException('To use the Socket client you need to install the "php-http/socket-client" package.'); } - return new Client($this->messageFactory, $config); + return new Client($config); } }