diff --git a/lib/private/Authentication/Token/DefaultToken.php b/lib/private/Authentication/Token/DefaultToken.php index b32f9cc986..ea2414e6e1 100644 --- a/lib/private/Authentication/Token/DefaultToken.php +++ b/lib/private/Authentication/Token/DefaultToken.php @@ -163,9 +163,9 @@ class DefaultToken extends Entity implements IToken { public function setScope($scope) { if (is_string($scope)) { - $this->scope = $scope; + parent::setScope($scope); } else { - return parent::setScope(json_encode($scope)); + parent::setScope(json_encode($scope)); } } }