summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2022-08-19 20:02:57 +0000
committerChristopher Ng <chrng8@gmail.com>2022-08-22 19:13:11 +0000
commitd59585974e2f3f51598da31f6e1dd0684affa77b (patch)
tree13cdd86687f7aba4f4c65b81d81b06b2ba982c7f /lib/public
parent2576609aac3555da0926c27b879df610a8b0f43c (diff)
downloadnextcloud-server-d59585974e2f3f51598da31f6e1dd0684affa77b.tar.gz
nextcloud-server-d59585974e2f3f51598da31f6e1dd0684affa77b.zip
Fix creation of new user and display the correct error message
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/IUser.php3
-rw-r--r--lib/public/User/Backend/ISetDisplayNameBackend.php3
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/public/IUser.php b/lib/public/IUser.php
index daf993df6cd..bb7bdf3304a 100644
--- a/lib/public/IUser.php
+++ b/lib/public/IUser.php
@@ -58,6 +58,9 @@ interface IUser {
* @param string $displayName
* @return bool
* @since 8.0.0
+ *
+ * @since 25.0.0 Throw InvalidArgumentException
+ * @throws \InvalidArgumentException
*/
public function setDisplayName($displayName);
diff --git a/lib/public/User/Backend/ISetDisplayNameBackend.php b/lib/public/User/Backend/ISetDisplayNameBackend.php
index 922d356bfd7..db62223ad52 100644
--- a/lib/public/User/Backend/ISetDisplayNameBackend.php
+++ b/lib/public/User/Backend/ISetDisplayNameBackend.php
@@ -36,6 +36,9 @@ interface ISetDisplayNameBackend {
* @param string $uid The username
* @param string $displayName The new display name
* @return bool
+ *
+ * @since 25.0.0 Throw InvalidArgumentException
+ * @throws \InvalidArgumentException
*/
public function setDisplayName(string $uid, string $displayName): bool;
}