Skip to content

Commit 2b8aa3c

Browse files
authored
Update date in changelog (#166)
* Update date in changelog * minor * minor * minor cleanup
1 parent c1ffd29 commit 2b8aa3c

6 files changed

+6
-8
lines changed

Diff for: CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Change Log
22

3-
## 2.0 (unreleased)
3+
## 2.0.0 - 2019-02-03
44

55
### Changed
66
- HttpClientRouter now throws a HttpClientNoMatchException instead of a RequestException if it can not find a client for the request.
@@ -10,7 +10,7 @@
1010
- Abstract method `HttpClientPool::chooseHttpClient()` has now an explicit return type (`Http\Client\Common\HttpClientPoolItem`)
1111
- Interface method `Plugin::handleRequest(...)` has now an explicit return type (`Http\Promise\Promise`)
1212
- Made classes final that are not intended to be extended.
13-
Added interfaces for BatchClient, HttpClientRouter and HttpMethodsClient.
13+
- Added interfaces for BatchClient, HttpClientRouter and HttpMethodsClient.
1414
(These interfaces use the `Interface` suffix to avoid name collisions.)
1515
- Added an interface for HttpClientPool and moved the abstract class to the HttpClientPool sub namespace.
1616
- AddPathPlugin: Do not add the prefix if the URL already has the same prefix.

Diff for: src/BatchClientInterface.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ interface BatchClientInterface
2222
* You may not assume that the requests are executed in a particular order. If the order matters
2323
* for your application, use sendRequest sequentially.
2424
*
25-
* @param RequestInterface[] The requests to send
25+
* @param RequestInterface[] $requests The requests to send
2626
*
2727
* @return BatchResult Containing one result per request
2828
*

Diff for: src/Exception/BatchException.php

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ final class BatchException extends TransferException
2424
public function __construct(BatchResult $result)
2525
{
2626
$this->result = $result;
27+
parent::__construct();
2728
}
2829

2930
/**

Diff for: src/Plugin/ContentTypePlugin.php

-3
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,6 @@ private function isJson(StreamInterface $stream): bool
106106
return JSON_ERROR_NONE === json_last_error();
107107
}
108108

109-
/**
110-
* @param $stream StreamInterface
111-
*/
112109
private function isXml(StreamInterface $stream): bool
113110
{
114111
if (!function_exists('simplexml_load_string')) {

Diff for: src/PluginClient.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ final class PluginClient implements HttpClient, HttpAsyncClient
2525
/**
2626
* An HTTP async client.
2727
*
28-
* @var HttpAsyncClient
28+
* @var HttpAsyncClient|HttpClient
2929
*/
3030
private $client;
3131

Diff for: src/PluginClientFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
final class PluginClientFactory
1717
{
1818
/**
19-
* @var callable
19+
* @var callable|null
2020
*/
2121
private static $factory;
2222

0 commit comments

Comments
 (0)