diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-05-25 10:55:22 +0300 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-07-28 17:53:22 +0300 |
commit | 03b1791cca3e0334637aa232d1f7c11850793646 (patch) | |
tree | 33db9b8db60a592089aaa7a4d6c04f4db4c1860f /lib/public | |
parent | 9493f86de34e76e37c13f87aab3123a3efbfdd84 (diff) |
Fix share attribute related tests + code style
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Share/IAttributes.php | 8 | ||||
-rw-r--r-- | lib/public/Share/IShare.php | 8 |
2 files changed, 8 insertions, 8 deletions
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 |