Skip to content

Commit 578b247

Browse files
authored
PHP CS Fixer - ordered_types (#23)
1 parent af8af02 commit 578b247

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/HttpClient.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct(array $options = [])
3333

3434
public function request(
3535
string $url,
36-
array|string|null $args = null,
36+
null|array|string $args = null,
3737
string $method = Request::DEFAULT_METHOD,
3838
array $options = [],
3939
): Response {

src/Request.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ final class Request
3030
public const DEFAULT_METHOD = self::GET;
3131

3232
private string $url = '';
33-
private string|array|null $args = null;
33+
private null|array|string $args = null;
3434
private string $method = self::GET;
3535
private array $headers = [];
3636
private Options $options;
3737

3838
public function __construct(
3939
string $url = '',
40-
array|string|null $args = [],
40+
null|array|string $args = [],
4141
string $method = self::DEFAULT_METHOD,
4242
array $headers = [],
4343
array|Options $options = [],
@@ -62,7 +62,7 @@ public function setUrl(string $url): self
6262
return $this;
6363
}
6464

65-
public function setArgs(array|string|null $args): self
65+
public function setArgs(null|array|string $args): self
6666
{
6767
$this->args = $args;
6868

@@ -114,7 +114,7 @@ public function getUri(): string
114114
return $this->url;
115115
}
116116

117-
public function getArgs(): array|string|null
117+
public function getArgs(): null|array|string
118118
{
119119
return $this->method === self::GET ? null : $this->args;
120120
}

0 commit comments

Comments
 (0)