diff options
Diffstat (limited to 'lib/private/Authentication/Token/PublicKeyToken.php')
-rw-r--r-- | lib/private/Authentication/Token/PublicKeyToken.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Authentication/Token/PublicKeyToken.php b/lib/private/Authentication/Token/PublicKeyToken.php index 0f2a515aa0d..198990cdd95 100644 --- a/lib/private/Authentication/Token/PublicKeyToken.php +++ b/lib/private/Authentication/Token/PublicKeyToken.php @@ -187,11 +187,11 @@ class PublicKeyToken extends Entity implements INamedToken, IWipeableToken { return $scope; } - public function setScope(mixed $scope): void { + public function setScope(string|array $scope): void { if (is_array($scope)) { parent::setScope(json_encode($scope)); } else { - parent::setScope((string)$scope); + parent::setScope($scope); } } |