Skip to content

Commit

Permalink
Fix coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
ssigwart authored Aug 8, 2024
1 parent 113bb14 commit e0d630c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Grant/RefreshTokenGrant.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ public function respondToAccessTokenRequest(

// Issue and persist new access token
$userId = $oldRefreshToken['user_id'];
if (is_int($userId))
if (is_int($userId)) {
$userId = (string)$userId;
}
$accessToken = $this->issueAccessToken($accessTokenTTL, $client, $userId, $scopes);
$this->getEmitter()->emit(new RequestAccessTokenEvent(RequestEvent::ACCESS_TOKEN_ISSUED, $request, $accessToken));
$responseType->setAccessToken($accessToken);
Expand Down

0 comments on commit e0d630c

Please sign in to comment.