From 651273808f7e40695539a4ac5b205b8aa46ff9ed Mon Sep 17 00:00:00 2001 From: Marc Hefter Date: Fri, 17 Feb 2023 10:37:31 +0100 Subject: CleanUp: correct version to 27 and return value specification Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com> Signed-off-by: Marc Hefter Signed-off-by: Marc Hefter --- lib/private/User/User.php | 6 +++--- lib/public/IUser.php | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/private/User/User.php b/lib/private/User/User.php index aaff2db8f5a..9449705358d 100644 --- a/lib/private/User/User.php +++ b/lib/private/User/User.php @@ -592,7 +592,7 @@ class User implements IUser { /** * @param string $property name of the AccountProperty - * @return string|null AccountProperty value + * @return ?string AccountProperty value * @throws InvalidArgumentException when the property name is invalid or null */ public function getProfilePropertyValue($property): ?string { @@ -611,7 +611,7 @@ class User implements IUser { /** * @param string $property name of the AccountProperty - * @return string|null AccountProperty scope + * @return ?string AccountProperty scope * @throws InvalidArgumentException when the property name is invalid or null */ public function getProfilePropertyScope($property): ?string { @@ -627,7 +627,7 @@ class User implements IUser { /** * @param string $property name of the AccountProperty - * @return string|null AccountProperty verified + * @return ?string AccountProperty verified * @throws InvalidArgumentException when the property name is invalid or null */ public function getProfilePropertyVerified($property): ?string { diff --git a/lib/public/IUser.php b/lib/public/IUser.php index 7dc21a28b08..f942e6f036f 100644 --- a/lib/public/IUser.php +++ b/lib/public/IUser.php @@ -278,7 +278,7 @@ interface IUser { * @param string $property name see IAccountManager::PROPERTY_* * @return string AccountProperty value * @throws InvalidArgumentException when the property name is invalid or null - * @since 25.0.0 + * @since 27.0.0 */ public function getProfilePropertyValue(string $property): ?string; @@ -288,7 +288,7 @@ interface IUser { * @param string $property name see IAccountManager::PROPERTY_* * @return string AccountProperty scope IAccountManager::SCOPE_* * @throws InvalidArgumentException when the property name is invalid or null - * @since 25.0.0 + * @since 27.0.0 */ public function getProfilePropertyScope(string $property): ?string; @@ -298,7 +298,7 @@ interface IUser { * @param string $property name see IAccountManager::PROPERTY_* * @return string AccountProperty verification status IAccountManager::NOT_VERIFIED/VERIFICATION_IN_PROGRESS/VERIFIED * @throws InvalidArgumentException when the property name is invalid or null - * @since 25.0.0 + * @since 27.0.0 */ public function getProfilePropertyVerified(string $property): ?string; @@ -311,7 +311,7 @@ interface IUser { * @param string $verified AccountProperty verified * @return void * @throws InvalidArgumentException when the property name is invalid or null - * @since 25.0.0 + * @since 27.0.0 */ public function setProfileProperty(string $property, $value=null, $scope=null, $verified=null); } -- cgit v1.2.3