Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: Fix tiny phpdoc errors related to Share
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
  • Loading branch information
come-nc committed Apr 30, 2024
commit af728c5ff69b3de0ea6bbbb65f9a7e639273ebd1
16 changes: 6 additions & 10 deletions lib/private/Share20/Share.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -538,7 +534,7 @@ public function getToken() {
/**
* 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.
*/
Expand Down
1 change: 1 addition & 0 deletions lib/public/Share/IShare.php
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,7 @@ public function getMailSend();
* Set the cache entry for the shared node
*
* @param ICacheEntry $entry
* @return void
* @since 11.0.0
*/
public function setNodeCacheEntry(ICacheEntry $entry);
Expand Down