Skip to content

Commit 4f6f8db

Browse files
committed
fix(Share20): Use correct enum for share type
Signed-off-by: provokateurin <kate@provokateurin.de>
1 parent 04b682a commit 4f6f8db

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/private/Share20/Share.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Share implements IShare {
3131
private $fileId;
3232
/** @var string */
3333
private $nodeType;
34-
/** @var int */
34+
/** @var IShare::TYPE_* */
3535
private $shareType;
3636
/** @var string */
3737
private $sharedWith;

lib/public/Share/IShare.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public function getNodeType();
209209
/**
210210
* Set the shareType
211211
*
212-
* @param int $shareType
212+
* @param self::TYPE_* $shareType
213213
* @return \OCP\Share\IShare The modified object
214214
* @since 9.0.0
215215
*/
@@ -218,7 +218,7 @@ public function setShareType($shareType);
218218
/**
219219
* Get the shareType
220220
*
221-
* @return int
221+
* @return self::TYPE_*
222222
* @since 9.0.0
223223
*/
224224
public function getShareType();

0 commit comments

Comments
 (0)