scopes)) { return; } foreach ($scopes as $scope) { if (!in_array($scope, $token->scopes)) { throw new MissingScopeException($scopes); } } } }