diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-10-23 15:19:38 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-10-23 15:19:38 +0200 |
commit | 58a57a714e0875d15da6513aecb6737bb3c603b5 (patch) | |
tree | 4b37b4839173c4649dd40b31bee4cd0e7b2e1c57 /lib/private/Authentication/Token | |
parent | 7a6c4ecc2562479381a7766c2538cb2d9257e9b9 (diff) | |
download | nextcloud-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.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); } } |