Skip to content

Fix Warning: Undefined array key on PHP8 #47

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

Merged
merged 3 commits into from
Aug 10, 2022

Conversation

babeuloula
Copy link
Contributor

Hello,

With PHP8.1 and Symfony 6.0 I've got an error when I tried to call getName method.

/** @var KeycloakResourceOwner $keycloakUser */
$keycloakUser = $client->fetchUserFromToken($accessToken);

$keycloakUser->getName(); // Warning: Undefined array key "name"

Have a nice day.

@babeuloula
Copy link
Contributor Author

ping @mstefan21

@mstefan21
Copy link
Collaborator

@babeuloula fix look good, I making some checks, why test failing, I need a little more time, I hope till end of this week will be ok to merge

@mstefan21
Copy link
Collaborator

@babeuloula can you please rebase your branch on last master. thqank you

@babeuloula
Copy link
Contributor Author

@babeuloula can you please rebase your branch on last master. thqank you

Done!

@mstefan21 mstefan21 merged commit 74a12bd into stevenmaguire:master Aug 10, 2022
@mstefan21
Copy link
Collaborator

Released as new version 3.1.1

@babeuloula babeuloula deleted the patch-1 branch August 10, 2022 06:54
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