Skip to content

Commit

Permalink
Avoid setting null when an string is required
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgarlag committed Aug 12, 2024
1 parent d3a3df1 commit ecc6667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/TestHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public static function generateJwtToken(AccessTokenModel $accessToken): string
$accessTokenEntity->setIdentifier($accessToken->getIdentifier());
$accessTokenEntity->setExpiryDateTime($accessToken->getExpiry());
$accessTokenEntity->setClient($clientEntity);
$accessTokenEntity->setUserIdentifier($accessToken->getUserIdentifier());
$accessTokenEntity->setUserIdentifier((string) $accessToken->getUserIdentifier());

foreach ($accessToken->getScopes() as $scope) {
$scopeEntity = new ScopeEntity();
Expand Down

0 comments on commit ecc6667

Please sign in to comment.