diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-10-17 12:38:21 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-10-17 12:38:21 +0200 |
commit | 60313683e2cf9ccd523700b4dd848a6c2c8df03f (patch) | |
tree | cdeccc7d196934e58f1fe05817248e8c78c50ee2 /apps/files_sharing | |
parent | c6b8a3bec34e882aa7c19b2d65d18fd7e29009b1 (diff) | |
download | nextcloud-server-60313683e2cf9ccd523700b4dd848a6c2c8df03f.tar.gz nextcloud-server-60313683e2cf9ccd523700b4dd848a6c2c8df03f.zip |
Fix checkpassword undocummented null parameter
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareInfoController.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareInfoController.php b/apps/files_sharing/lib/Controller/ShareInfoController.php index 429eb91bc92..b090e6efcf1 100644 --- a/apps/files_sharing/lib/Controller/ShareInfoController.php +++ b/apps/files_sharing/lib/Controller/ShareInfoController.php @@ -61,11 +61,11 @@ class ShareInfoController extends ApiController { * @BruteForceProtection(action=shareinfo) * * @param string $t - * @param null $password - * @param null $dir + * @param ?string $password + * @param ?string $dir * @return JSONResponse */ - public function info($t, $password = null, $dir = null) { + public function info(string $t, ?string $password = null, ?string $dir = null) { try { $share = $this->shareManager->getShareByToken($t); } catch (ShareNotFound $e) { |