Skip to content

Commit d3f00d5

Browse files
committed
Merge pull request #6 from php-http/param_order
Follow HTTP protocol order
2 parents afdfd81 + 8d3f6b0 commit d3f00d5

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/HttpAdapter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ public function options($uri, array $headers = [], $data = [], array $files = []
128128
/**
129129
* Sends a request
130130
*
131-
* @param string|UriInterface $uri
132131
* @param string $method
132+
* @param string|UriInterface $uri
133133
* @param string[] $headers
134134
* @param array|string $data
135135
* @param array $files
@@ -138,5 +138,5 @@ public function options($uri, array $headers = [], $data = [], array $files = []
138138
*
139139
* @return ResponseInterface
140140
*/
141-
public function send($uri, $method, array $headers = [], $data = [], array $files = []);
141+
public function send($method, $uri, array $headers = [], $data = [], array $files = []);
142142
}

src/Message/MessageFactoryInterface.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ public function setBaseUri($baseUri);
4646
/**
4747
* Creates a new request
4848
*
49-
* @param string|UriInterface $uri
5049
* @param string $method
50+
* @param string|UriInterface $uri
5151
* @param string $protocolVersion
5252
* @param string[] $headers
5353
* @param resource|string|StreamInterface|null $body
@@ -56,8 +56,8 @@ public function setBaseUri($baseUri);
5656
* @return RequestInterface
5757
*/
5858
public function createRequest(
59-
$uri,
6059
$method = RequestInterface::METHOD_GET,
60+
$uri,
6161
$protocolVersion = RequestInterface::PROTOCOL_VERSION_1_1,
6262
array $headers = [],
6363
$body = null,
@@ -67,8 +67,8 @@ public function createRequest(
6767
/**
6868
* Creates an internal request
6969
*
70-
* @param string|UriInterface $uri
7170
* @param string $method
71+
* @param string|UriInterface $uri
7272
* @param string $protocolVersion
7373
* @param string[] $headers
7474
* @param array|string $data
@@ -78,8 +78,8 @@ public function createRequest(
7878
* @return InternalRequestInterface
7979
*/
8080
public function createInternalRequest(
81-
$uri,
8281
$method = RequestInterface::METHOD_GET,
82+
$uri,
8383
$protocolVersion = RequestInterface::PROTOCOL_VERSION_1_1,
8484
array $headers = [],
8585
$data = [],
@@ -88,7 +88,7 @@ public function createInternalRequest(
8888
);
8989

9090
/**
91-
* Creates a response.
91+
* Creates a response
9292
*
9393
* @param integer $statusCode
9494
* @param string $protocolVersion

0 commit comments

Comments
 (0)