mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Use more precise typing for setScope method parameter
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
7a6c4ecc25
commit
58a57a714e
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue