File tree 2 files changed +8
-8
lines changed
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
28
28
public function createRequest (
29
29
$ method ,
30
30
$ uri ,
31
- $ protocolVersion = '1.1 ' ,
32
31
array $ headers = [],
33
- $ body = null
32
+ $ body = null ,
33
+ $ protocolVersion = '1.1 '
34
34
) {
35
35
return (new Request (
36
36
$ uri ,
@@ -46,9 +46,9 @@ public function createRequest(
46
46
public function createResponse (
47
47
$ statusCode = 200 ,
48
48
$ reasonPhrase = null ,
49
- $ protocolVersion = '1.1 ' ,
50
49
array $ headers = [],
51
- $ body = null
50
+ $ body = null ,
51
+ $ protocolVersion = '1.1 '
52
52
) {
53
53
return (new Response (
54
54
$ this ->createStream ($ body ),
Original file line number Diff line number Diff line change @@ -26,9 +26,9 @@ class GuzzleFactory implements MessageFactory
26
26
public function createRequest (
27
27
$ method ,
28
28
$ uri ,
29
- $ protocolVersion = '1.1 ' ,
30
29
array $ headers = [],
31
- $ body = null
30
+ $ body = null ,
31
+ $ protocolVersion = '1.1 '
32
32
) {
33
33
return new Request (
34
34
$ method ,
@@ -45,9 +45,9 @@ public function createRequest(
45
45
public function createResponse (
46
46
$ statusCode = 200 ,
47
47
$ reasonPhrase = null ,
48
- $ protocolVersion = '1.1 ' ,
49
48
array $ headers = [],
50
- $ body = null
49
+ $ body = null ,
50
+ $ protocolVersion = '1.1 '
51
51
) {
52
52
return new Response (
53
53
$ statusCode ,
You can’t perform that action at this time.
0 commit comments