stevenmaguire / oauth2-keycloak

Keycloak Provider for OAuth 2.0 Client
MIT License
204 stars 151 forks source link

Fix Warning: Undefined array key on PHP8 #47

Closed babeuloula closed 2 years ago

babeuloula commented 2 years ago

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 commented 2 years ago

ping @mstefan21

mstefan21 commented 2 years ago

@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 commented 2 years ago

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

babeuloula commented 2 years ago

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

Done!

mstefan21 commented 2 years ago

Released as new version 3.1.1