Skip to content

Commit 89eee72

Browse files
committed
Apply fixes from StyleCI
1 parent e241c31 commit 89eee72

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/Bridge/AccessToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class AccessToken implements AccessTokenEntityInterface
1818
* @param non-empty-string|null $userIdentifier
1919
* @param \League\OAuth2\Server\Entities\ScopeEntityInterface[] $scopes
2020
*/
21-
public function __construct(string|null $userIdentifier, array $scopes, ClientEntityInterface $client)
21+
public function __construct(?string $userIdentifier, array $scopes, ClientEntityInterface $client)
2222
{
2323
if (! is_null($userIdentifier)) {
2424
$this->setUserIdentifier($userIdentifier);

src/Bridge/AccessTokenRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function __construct(
2626
public function getNewToken(
2727
ClientEntityInterface $clientEntity,
2828
array $scopes,
29-
string|null $userIdentifier = null
29+
?string $userIdentifier = null
3030
): AccessTokenEntityInterface {
3131
return new Passport::$accessTokenEntity($userIdentifier, $scopes, $clientEntity);
3232
}

src/Bridge/ScopeRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function finalizeScopes(
3535
array $scopes,
3636
string $grantType,
3737
ClientEntityInterface $clientEntity,
38-
string|null $userIdentifier = null,
38+
?string $userIdentifier = null,
3939
?string $authCodeId = null
4040
): array {
4141
return collect($scopes)

src/Passport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class Passport
8282
/**
8383
* The storage location of the encryption keys.
8484
*/
85-
public static string|null $keyPath = null;
85+
public static ?string $keyPath = null;
8686

8787
/**
8888
* The access token entity class name.

0 commit comments

Comments
 (0)