Skip to content
This repository was archived by the owner on May 13, 2023. It is now read-only.

Commit fb2e1fd

Browse files
committed
Merge pull request #6 from php-http/parameter-order
reorder message factory parameter to have least important last
2 parents f49b9ed + 37ccba9 commit fb2e1fd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/MessageFactory.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -26,36 +26,36 @@ interface MessageFactory
2626
*
2727
* @param string $method
2828
* @param string|UriInterface $uri
29-
* @param string $protocolVersion
3029
* @param array $headers
3130
* @param resource|string|StreamInterface|null $body
31+
* @param string $protocolVersion
3232
*
3333
* @return RequestInterface
3434
*/
3535
public function createRequest(
3636
$method,
3737
$uri,
38-
$protocolVersion = '1.1',
3938
array $headers = [],
40-
$body = null
39+
$body = null,
40+
$protocolVersion = '1.1'
4141
);
4242

4343
/**
4444
* Creates a response
4545
*
4646
* @param integer $statusCode
4747
* @param string|null $reasonPhrase
48-
* @param string $protocolVersion
4948
* @param array $headers
5049
* @param resource|string|StreamInterface|null $body
50+
* @param string $protocolVersion
5151
*
5252
* @return ResponseInterface
5353
*/
5454
public function createResponse(
5555
$statusCode = 200,
5656
$reasonPhrase = null,
57-
$protocolVersion = '1.1',
5857
array $headers = [],
59-
$body = null
58+
$body = null,
59+
$protocolVersion = '1.1'
6060
);
6161
}

0 commit comments

Comments
 (0)