aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Authentication/Token
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-10-23 15:19:38 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2023-10-23 15:19:38 +0200
commit58a57a714e0875d15da6513aecb6737bb3c603b5 (patch)
tree4b37b4839173c4649dd40b31bee4cd0e7b2e1c57 /lib/private/Authentication/Token
parent7a6c4ecc2562479381a7766c2538cb2d9257e9b9 (diff)
downloadnextcloud-server-58a57a714e0875d15da6513aecb6737bb3c603b5.tar.gz
nextcloud-server-58a57a714e0875d15da6513aecb6737bb3c603b5.zip
Use more precise typing for setScope method parameter
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/Authentication/Token')
-rw-r--r--lib/private/Authentication/Token/PublicKeyToken.php4
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);
}
}