From 2ee659e54787c938e57787261442ad4037270322 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Mon, 13 Jun 2022 12:48:35 +0200 Subject: Fix view-only code after code review comments Signed-off-by: Vincent Petry --- lib/private/Share20/Share.php | 2 +- lib/public/Share/IShare.php | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3