diff --git a/src/NextcloudApiWrapper/SharesClient.php b/src/NextcloudApiWrapper/SharesClient.php index bfc358b..145cc54 100644 --- a/src/NextcloudApiWrapper/SharesClient.php +++ b/src/NextcloudApiWrapper/SharesClient.php @@ -57,12 +57,13 @@ public function createShare(array $params) { $params = $this->resolve($params, function(OptionsResolver $resolver) { $resolver->setRequired([ 'path', - 'shareType', - 'shareWith' + 'shareType' ])->setDefaults([ + 'shareWith' => null, 'publicUpload' => null, 'password' => null, - 'permissions' => null + 'permissions' => null, + 'expireDate' => null ]); }); @@ -94,4 +95,4 @@ public function updateShare($shareid, $key, $value) { $key => $value ]); } -} \ No newline at end of file +}