aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-04-29 17:12:27 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2024-04-30 09:24:01 +0200
commitaf728c5ff69b3de0ea6bbbb65f9a7e639273ebd1 (patch)
tree1608bb4f883d0f729e41e4bc280b4e03e5a6601c /lib
parent85cea1960b1c15874a03d6dbc7408ca2dedf40ea (diff)
downloadnextcloud-server-af728c5ff69b3de0ea6bbbb65f9a7e639273ebd1.tar.gz
nextcloud-server-af728c5ff69b3de0ea6bbbb65f9a7e639273ebd1.zip
fix: Fix tiny phpdoc errors related to Share
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Share20/Share.php16
-rw-r--r--lib/public/Share/IShare.php1
2 files changed, 7 insertions, 10 deletions
diff --git a/lib/private/Share20/Share.php b/lib/private/Share20/Share.php
index 19b36cb60e8..e1d8818216b 100644
--- a/lib/private/Share20/Share.php
+++ b/lib/private/Share20/Share.php
@@ -91,27 +91,23 @@ class Share implements IShare {
/** @var string */
private $label = '';
- /** @var IRootFolder */
- private $rootFolder;
-
- /** @var IUserManager */
- private $userManager;
-
/** @var ICacheEntry|null */
private $nodeCacheEntry;
/** @var bool */
private $hideDownload = false;
- public function __construct(IRootFolder $rootFolder, IUserManager $userManager) {
- $this->rootFolder = $rootFolder;
- $this->userManager = $userManager;
+ public function __construct(
+ private IRootFolder $rootFolder,
+ private IUserManager $userManager,
+ ) {
}
/**
* @inheritdoc
*/
public function setId($id) {
+ /** @var mixed $id Let's be safe until strong typing */
if (is_int($id)) {
$id = (string)$id;
}
@@ -538,7 +534,7 @@ class Share implements IShare {
/**
* Set the parent of this share
*
- * @param int parent
+ * @param int $parent
* @return IShare
* @deprecated The new shares do not have parents. This is just here for legacy reasons.
*/
diff --git a/lib/public/Share/IShare.php b/lib/public/Share/IShare.php
index a059696a75e..0961631ea92 100644
--- a/lib/public/Share/IShare.php
+++ b/lib/public/Share/IShare.php
@@ -587,6 +587,7 @@ interface IShare {
* Set the cache entry for the shared node
*
* @param ICacheEntry $entry
+ * @return void
* @since 11.0.0
*/
public function setNodeCacheEntry(ICacheEntry $entry);