From 03b1791cca3e0334637aa232d1f7c11850793646 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Wed, 25 May 2022 09:55:22 +0200 Subject: Fix share attribute related tests + code style Signed-off-by: Vincent Petry --- lib/public/Share/IAttributes.php | 8 ++++---- lib/public/Share/IShare.php | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'lib/public/Share') diff --git a/lib/public/Share/IAttributes.php b/lib/public/Share/IAttributes.php index 9f2556e4005..6e4cee08b12 100644 --- a/lib/public/Share/IAttributes.php +++ b/lib/public/Share/IAttributes.php @@ -24,7 +24,7 @@ namespace OCP\Share; * Interface IAttributes * * @package OCP\Share - * @since 10.2.0 + * @since 25.0.0 */ interface IAttributes { @@ -35,7 +35,7 @@ interface IAttributes { * @param string $key key * @param bool $enabled enabled * @return IAttributes The modified object - * @since 10.2.0 + * @since 25.0.0 */ public function setAttribute($scope, $key, $enabled); @@ -46,7 +46,7 @@ interface IAttributes { * @param string $scope scope * @param string $key key * @return bool|null - * @since 10.2.0 + * @since 25.0.0 */ public function getAttribute($scope, $key); @@ -62,7 +62,7 @@ interface IAttributes { * ] * * @return array formatted IAttributes - * @since 10.2.0 + * @since 25.0.0 */ public function toArray(); } diff --git a/lib/public/Share/IShare.php b/lib/public/Share/IShare.php index d81f263b464..f86e1ec542d 100644 --- a/lib/public/Share/IShare.php +++ b/lib/public/Share/IShare.php @@ -325,19 +325,19 @@ interface IShare { /** * Set share attributes * - * @param IAttributes $attributes + * @param ?IAttributes $attributes * @since 25.0.0 * @return IShare The modified object */ - public function setAttributes(IAttributes $attributes); + public function setAttributes(?IAttributes $attributes); /** * Get share attributes * * @since 25.0.0 - * @return IAttributes + * @return ?IAttributes */ - public function getAttributes(); + public function getAttributes(): ?IAttributes; /** * Set the accepted status -- cgit v1.2.3