thephpleague / oauth2-server

A spec compliant, secure by default PHP OAuth 2.0 Server
https://oauth2.thephpleague.com
MIT License
6.49k stars 1.12k forks source link

Wrong Type in DocBlock 3rd param `AbstractGrant::issueAccessToken` #1391

Closed tonybolzan closed 1 month ago

tonybolzan commented 6 months ago

In class AbstractGrant::issueAccessToken 3rd param $userIdentifier must be equal to AccessTokenRepositoryInterface::getNewToken 3rd param.

Change @param string|null $userIdentifier to mixed in AbstractGrant.php#L441 like in AccessTokenRepositoryInterface.php#L27

Sephster commented 2 months ago

Thanks for reporting this. It should be fixed in #1402