summaryrefslogtreecommitdiffstats
path: root/lib/private/Share/Share.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-08-15 11:57:18 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-08-15 11:57:18 +0200
commit8366dfa50b26632007462699085ef1f8c02ab880 (patch)
tree21b1fb3eb57b8ce463e463dc762a0f138c375497 /lib/private/Share/Share.php
parentc5c23b30b9f510ce211d9fa3187dc3c8cff4116e (diff)
downloadnextcloud-server-8366dfa50b26632007462699085ef1f8c02ab880.tar.gz
nextcloud-server-8366dfa50b26632007462699085ef1f8c02ab880.zip
Cleanup usage of shareItem in internal code base
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Share/Share.php')
-rw-r--r--lib/private/Share/Share.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Share/Share.php b/lib/private/Share/Share.php
index 52b382e6678..8abb52a7cfb 100644
--- a/lib/private/Share/Share.php
+++ b/lib/private/Share/Share.php
@@ -351,11 +351,12 @@ class Share extends Constants {
* @param string $shareWith User or group the item is being shared with
* @param int $permissions CRUDS
* @param string $itemSourceName
- * @param \DateTime $expirationDate
- * @param bool $passwordChanged
+ * @param \DateTime|null $expirationDate
+ * @param bool|null $passwordChanged
* @return boolean|string Returns true on success or false on failure, Returns token on success for links
* @throws \OC\HintException when the share type is remote and the shareWith is invalid
* @throws \Exception
+ * @since 5.0.0 - parameter $itemSourceName was added in 6.0.0, parameter $expirationDate was added in 7.0.0, parameter $passwordChanged added in 9.0.0
*/
public static function shareItem($itemType, $itemSource, $shareType, $shareWith, $permissions, $itemSourceName = null, \DateTime $expirationDate = null, $passwordChanged = null) {