Skip to content

Commit 41b994d

Browse files
committed
Fixes
1 parent e2f5d79 commit 41b994d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Helpers/OAuth2/OAuthConfig.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Saloon\Helpers\OAuth2;
66

7+
use Closure;
78
use Saloon\Traits\Makeable;
89
use Saloon\Contracts\Request;
910
use Saloon\Exceptions\OAuthConfigValidationException;
@@ -62,7 +63,7 @@ class OAuthConfig
6263
*
6364
* @var \Closure(\Saloon\Contracts\Request): (void)|null
6465
*/
65-
protected Closure $requestModifier = null;
66+
protected ?Closure $requestModifier = null;
6667

6768
/**
6869
* The default scopes that will be applied to every authorization URL.
@@ -235,9 +236,7 @@ public function setDefaultScopes(array $defaultScopes): static
235236
/**
236237
* Set the request modifier callable which can be used to modify the request being sent
237238
*
238-
* @template TRequest of \Saloon\Contracts\Request
239-
*
240-
* @param callable(TRequest): (void) $requestModifier
239+
* @param callable(\Saloon\Contracts\Request): (void) $requestModifier
241240
* @return $this
242241
*/
243242
public function setRequestModifier(callable $requestModifier): static

0 commit comments

Comments
 (0)