File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ class DiactorosFactory implements MessageFactory
2828 public function createRequest (
2929 $ method ,
3030 $ uri ,
31- $ protocolVersion = '1.1 ' ,
3231 array $ headers = [],
33- $ body = null
32+ $ body = null ,
33+ $ protocolVersion = '1.1 '
3434 ) {
3535 return (new Request (
3636 $ uri ,
@@ -46,9 +46,9 @@ public function createRequest(
4646 public function createResponse (
4747 $ statusCode = 200 ,
4848 $ reasonPhrase = null ,
49- $ protocolVersion = '1.1 ' ,
5049 array $ headers = [],
51- $ body = null
50+ $ body = null ,
51+ $ protocolVersion = '1.1 '
5252 ) {
5353 return (new Response (
5454 $ this ->createStream ($ body ),
Original file line number Diff line number Diff line change @@ -26,9 +26,9 @@ class GuzzleFactory implements MessageFactory
2626 public function createRequest (
2727 $ method ,
2828 $ uri ,
29- $ protocolVersion = '1.1 ' ,
3029 array $ headers = [],
31- $ body = null
30+ $ body = null ,
31+ $ protocolVersion = '1.1 '
3232 ) {
3333 return new Request (
3434 $ method ,
@@ -45,9 +45,9 @@ public function createRequest(
4545 public function createResponse (
4646 $ statusCode = 200 ,
4747 $ reasonPhrase = null ,
48- $ protocolVersion = '1.1 ' ,
4948 array $ headers = [],
50- $ body = null
49+ $ body = null ,
50+ $ protocolVersion = '1.1 '
5151 ) {
5252 return new Response (
5353 $ statusCode ,
You can’t perform that action at this time.
0 commit comments