mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-22 21:19:46 +05:30
If there are no scopes to format then just return an empty array
This commit is contained in:
parent
be51cdf9b1
commit
9e2a6ed238
@ -137,6 +137,10 @@ abstract class AbstractTokenEntity
|
||||
*/
|
||||
protected function formatScopes($unformatted = [])
|
||||
{
|
||||
if (is_null($unformatted)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
$scopes = [];
|
||||
foreach ($unformatted as $scope) {
|
||||
if ($scope instanceof ScopeEntity) {
|
||||
|
Loading…
Reference in New Issue
Block a user