Skip to content

Commit 7112f8c

Browse files
committed
Merge pull request #10 from Nyholm/stable
Updated to stable versions of Httplug
2 parents 21422a3 + e11d485 commit 7112f8c

File tree

6 files changed

+12
-8
lines changed

6 files changed

+12
-8
lines changed

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@
1212
],
1313
"require": {
1414
"php": ">=5.4",
15-
"php-http/client-common": "^0.1.1",
15+
"php-http/httplug": "^1.0",
1616
"react/http-client": "^0.4.8",
1717
"react/dns": "^0.4.1",
1818
"react/stream": "^0.4.3"
1919
},
2020
"require-dev": {
2121
"guzzlehttp/psr7": "^1.0",
22-
"php-http/adapter-integration-tests": "dev-master"
22+
"php-http/adapter-integration-tests": "^0.3.1",
23+
"puli/composer-plugin": "1.0.0-beta9"
2324
},
2425
"autoload": {
2526
"psr-4": {
@@ -45,5 +46,5 @@
4546
"test-ci": "vendor/bin/phpunit --coverage-clover build/coverage.xml"
4647
},
4748
"prefer-stable": true,
48-
"minimum-stability": "dev"
49+
"minimum-stability": "beta"
4950
}

src/Client.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Http\Adapter\React;
44

5+
use Psr\Http\Message\ResponseInterface;
56
use React\EventLoop\LoopInterface;
67
use React\Promise\Deferred;
78
use React\HttpClient\Client as ReactClient;
@@ -46,8 +47,8 @@ class Client implements HttpClient, HttpAsyncClient
4647
/**
4748
* Initialize the React client.
4849
*
50+
* @param MessageFactory $messageFactory
4951
* @param LoopInterface|null $loop React Event loop
50-
* @param Resolver $resolver React async DNS resolver
5152
* @param ReactClient $client React client to use
5253
*/
5354
public function __construct(

src/Promise.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function (Exception $error) {
7676
* @param callable|null $onFulfilled
7777
* @param callable|null $onRejected
7878
*
79-
* @return ReactPromiseAdapter
79+
* @return Promise
8080
*/
8181
public function then(callable $onFulfilled = null, callable $onRejected = null)
8282
{
@@ -106,7 +106,7 @@ public function getState()
106106
*
107107
* @param LoopInterface $loop
108108
*
109-
* @return ReactPromiseAdapter
109+
* @return Promise
110110
*/
111111
public function setLoop(LoopInterface $loop)
112112
{

src/ReactFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public static function buildDnsResolver(
4747
* Build a React Http Client.
4848
*
4949
* @param LoopInterface $loop
50-
* @param Resolver $dns
50+
* @param DnsResolver $dns
5151
*
5252
* @return HttpClient
5353
*/

tests/AsyncClientTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Http\Adapter\React\Tests;
44

5+
use Http\Client\HttpClient;
56
use Http\Discovery\MessageFactoryDiscovery;
67
use Http\Client\Tests\HttpAsyncClientTest;
78
use Http\Adapter\React\Client;

tests/ClientTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
namespace Http\Adapter\React\Tests;
44

5-
use Http\Discovery\MessageFactoryDiscovery;
5+
use Http\Client\HttpClient;
66
use Http\Client\Tests\HttpClientTest;
77
use Http\Adapter\React\Client;
8+
use Http\Discovery\MessageFactoryDiscovery;
89

910
/**
1011
* @author Stéphane Hulard <stephane@hlrd.me>

0 commit comments

Comments
 (0)