Skip to content
Snippets Groups Projects
Commit 81ee096a authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Minor change

parent 43d0bcc9
Branches
No related tags found
No related merge requests found
...@@ -98,7 +98,7 @@ class TokenBuilder { ...@@ -98,7 +98,7 @@ class TokenBuilder {
if ($client->scopeAudienceMap !== null) { if ($client->scopeAudienceMap !== null) {
foreach ($tokenData->scope as $scope) { foreach ($tokenData->scope as $scope) {
if (array_key_exists($scope, $client->scopeAudienceMap)) { if (array_key_exists($scope, $client->scopeAudienceMap)) {
$audience = $client->scopeAudienceMap[$scope]; $audience = ((array) $client->scopeAudienceMap)[$scope];
if (!in_array($audience, $audiences)) { if (!in_array($audience, $audiences)) {
array_push($audiences, $audience); array_push($audiences, $audience);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment