File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public function __construct(array $options = [])
33
33
34
34
public function request (
35
35
string $ url ,
36
- array |string | null $ args = null ,
36
+ null | array |string $ args = null ,
37
37
string $ method = Request::DEFAULT_METHOD ,
38
38
array $ options = [],
39
39
): Response {
Original file line number Diff line number Diff line change @@ -30,14 +30,14 @@ final class Request
30
30
public const DEFAULT_METHOD = self ::GET ;
31
31
32
32
private string $ url = '' ;
33
- private string |array |null $ args = null ;
33
+ private null |array |string $ args = null ;
34
34
private string $ method = self ::GET ;
35
35
private array $ headers = [];
36
36
private Options $ options ;
37
37
38
38
public function __construct (
39
39
string $ url = '' ,
40
- array |string | null $ args = [],
40
+ null | array |string $ args = [],
41
41
string $ method = self ::DEFAULT_METHOD ,
42
42
array $ headers = [],
43
43
array |Options $ options = [],
@@ -62,7 +62,7 @@ public function setUrl(string $url): self
62
62
return $ this ;
63
63
}
64
64
65
- public function setArgs (array |string | null $ args ): self
65
+ public function setArgs (null | array |string $ args ): self
66
66
{
67
67
$ this ->args = $ args ;
68
68
@@ -114,7 +114,7 @@ public function getUri(): string
114
114
return $ this ->url ;
115
115
}
116
116
117
- public function getArgs (): array |string | null
117
+ public function getArgs (): null | array |string
118
118
{
119
119
return $ this ->method === self ::GET ? null : $ this ->args ;
120
120
}
You can’t perform that action at this time.
0 commit comments