Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScopeResolveEvent's property $userIdentifier should accept a mixed argument #277

Open
wants to merge 1 commit into
base: v3.x
Choose a base branch
from

Conversation

eric-boot
Copy link

According to League's UserEntityInterface the user identifier contains a mixed value. When using an integer for instance, this results in the following exception:
Argument 4 passed to Trikoder\\Bundle\\OAuth2Bundle\\Event\\ScopeResolveEvent::__construct() must be of the type string or null, int given, called in \/var\/www\/html\/vendor\/trikoder\/oauth2-bundle\/League\/Repository\/ScopeRepository.php on line 83

This could be prevented by accepting a mixed value as 4th argument to the constructor of ScopeResolveEvent.

…ing to League\OAuth2\Server\Entities\UserEntityInterface
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants