summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2021-05-12 00:33:26 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2021-05-12 01:31:15 +0200
commit8413ed947577a37c79ceebfc827acd37494d1a37 (patch)
treed0de6294ed93ad2c9e2d191bd5d2f2d399e485e1 /lib/public
parent1e271e9f76a5378d719e699c828a530c95ece336 (diff)
downloadnextcloud-server-8413ed947577a37c79ceebfc827acd37494d1a37.tar.gz
nextcloud-server-8413ed947577a37c79ceebfc827acd37494d1a37.zip
allow to set valid scopes only in AccountProperty
the auto-fallback to v2-local is removed as well to react on wrong input Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Accounts/IAccountProperty.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/public/Accounts/IAccountProperty.php b/lib/public/Accounts/IAccountProperty.php
index 657121a27e8..1366ddd9543 100644
--- a/lib/public/Accounts/IAccountProperty.php
+++ b/lib/public/Accounts/IAccountProperty.php
@@ -26,6 +26,8 @@ declare(strict_types=1);
namespace OCP\Accounts;
+use InvalidArgumentException;
+
/**
* Interface IAccountProperty
*
@@ -50,6 +52,7 @@ interface IAccountProperty extends \JsonSerializable {
*
* @param string $scope
* @return IAccountProperty
+ * @throws InvalidArgumentException (since 22.0.0)
*/
public function setScope(string $scope): IAccountProperty;