mirror of
https://github.com/elyby/oauth2-server.git
synced 2026-11-22 23:53:18 +05:30
If there are no scopes to format then just return an empty array
This commit is contained in:
1 parent
be51cdf9b1
commit
9e2a6ed238
1 file changed
+4
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user