Skip to content

Commit 5c0451d

Browse files
committed
Type clean up
1 parent 6f28a00 commit 5c0451d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/GrantType/PasswordGrantType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ public function __construct(
3939
string $tokenUrl,
4040
string $username,
4141
string $password,
42-
?string $clientId = null,
43-
?string $clientSecret = null,
42+
string $clientId = null,
43+
string $clientSecret = null,
4444
) {
4545
$this->client = $client;
4646
$this->tokenUrl = $tokenUrl;

src/OAuthHttpClient.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ final class OAuthHttpClient implements HttpClientInterface
2323

2424
private GrantTypeInterface $grant;
2525

26-
private RequestSignerInterface|BearerHeaderRequestSigner $signer;
26+
private RequestSignerInterface $signer;
2727

28-
private ResponseCheckerInterface|StatusCode401ResponseChecker $checker;
28+
private ResponseCheckerInterface $checker;
2929

30-
private TokensCacheInterface|MemoryTokensCache $cache;
30+
private TokensCacheInterface $cache;
3131

3232
public function __construct(
3333
HttpClientInterface $client,
@@ -91,6 +91,6 @@ public function stream($responses, float $timeout = null): ResponseStreamInterfa
9191

9292
public function withOptions(array $options): static
9393
{
94-
return new static($this->client->withOptions($options), $this->grant);
94+
return new self($this->client->withOptions($options), $this->grant);
9595
}
9696
}

0 commit comments

Comments
 (0)