Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-06-13 13:48:35 +0300
committerCarl Schwan <carl@carlschwan.eu>2022-07-28 17:53:24 +0300
commit2ee659e54787c938e57787261442ad4037270322 (patch)
treeddc2a94bb966c5790bf14eb31ecc1d73d20fc951 /lib
parent2fb7a1feebb6b8a2c524c75e688cec00d4e3d50e (diff)
Fix view-only code after code review comments
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Share20/Share.php2
-rw-r--r--lib/public/Share/IShare.php6
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/private/Share20/Share.php b/lib/private/Share20/Share.php
index 9ba5db5252e..c2d45503696 100644
--- a/lib/private/Share20/Share.php
+++ b/lib/private/Share20/Share.php
@@ -338,7 +338,7 @@ class Share implements IShare {
/**
* @inheritdoc
*/
- public function newAttributes() {
+ public function newAttributes(): IAttributes {
return new ShareAttributes();
}
diff --git a/lib/public/Share/IShare.php b/lib/public/Share/IShare.php
index f86e1ec542d..5a825552e26 100644
--- a/lib/public/Share/IShare.php
+++ b/lib/public/Share/IShare.php
@@ -36,7 +36,9 @@ use OCP\Files\NotFoundException;
use OCP\Share\Exceptions\IllegalIDChangeException;
/**
- * Interface IShare
+ * This interface allows to represent a share object.
+ *
+ * This interface must not be implemented in your application.
*
* @since 9.0.0
*/
@@ -320,7 +322,7 @@ interface IShare {
* @since 25.0.0
* @return IAttributes
*/
- public function newAttributes();
+ public function newAttributes(): IAttributes;
/**
* Set share attributes