Skip to content

Commit 963a4a9

Browse files
committed
fix: allow configuration of php-http/socket-client
1 parent 323dbec commit 963a4a9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
},
4444
"conflict": {
4545
"php-http/guzzle6-adapter": "<1.1",
46-
"php-http/curl-client": "<2.0"
46+
"php-http/curl-client": "<2.0",
47+
"php-http/socket-client": "<2.0"
4748
},
4849
"require-dev": {
4950
"guzzlehttp/psr7": "^1.7",

src/ClientFactory/SocketFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ public function createClient(array $config = [])
3131
throw new \LogicException('To use the Socket client you need to install the "php-http/socket-client" package.');
3232
}
3333

34-
return new Client($this->messageFactory, $config);
34+
return new Client($config);
3535
}
3636
}

0 commit comments

Comments
 (0)