Skip to content

Commit e8135a2

Browse files
committed
Make it work with psr18 and httplug 2.0
1 parent c1625bf commit e8135a2

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111
"require": {
1212
"php": "^7.1",
1313
"symfony/options-resolver": "^2.6 || ^3.0 || ^4.0",
14-
"php-http/httplug": "^1.0",
15-
"php-http/message-factory": "^1.0.2",
14+
"php-http/httplug": "^1.0 || ^2.0",
15+
"php-http/message-factory": "^1.0.2 || ^2.0",
1616
"php-http/discovery": "^1.0"
1717
},
1818
"require-dev": {
1919
"friendsofphp/php-cs-fixer": "^2.2",
2020
"guzzlehttp/psr7": "^1.2",
21-
"php-http/client-integration-tests": "^0.6",
21+
"php-http/client-integration-tests": "^1.0 || ^2.0",
2222
"php-http/message": "^1.0",
23-
"php-http/client-common": "^1.0"
23+
"php-http/client-common": "^1.0 || ^2.0"
2424
},
2525
"provide": {
2626
"php-http/client-implementation": "1.0"
@@ -43,7 +43,7 @@
4343
},
4444
"extra": {
4545
"branch-alias": {
46-
"dev-master": "1.1-dev"
46+
"dev-master": "2.0-dev"
4747
}
4848
},
4949
"prefer-stable": true,

src/Client.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Http\Discovery\MessageFactoryDiscovery;
1010
use Http\Message\ResponseFactory;
1111
use Psr\Http\Message\RequestInterface;
12+
use Psr\Http\Message\ResponseInterface;
1213
use Symfony\Component\OptionsResolver\Options;
1314
use Symfony\Component\OptionsResolver\OptionsResolver;
1415

@@ -62,7 +63,7 @@ public function __construct(ResponseFactory $responseFactory = null, array $conf
6263
/**
6364
* {@inheritdoc}
6465
*/
65-
public function sendRequest(RequestInterface $request)
66+
public function sendRequest(RequestInterface $request): ResponseInterface
6667
{
6768
$remote = $this->config['remote_socket'];
6869
$useSsl = $this->config['ssl'];

0 commit comments

Comments
 (0)