From 60313683e2cf9ccd523700b4dd848a6c2c8df03f Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Mon, 17 Oct 2022 12:38:21 +0200 Subject: Fix checkpassword undocummented null parameter Signed-off-by: Carl Schwan --- apps/files_sharing/lib/Controller/ShareInfoController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/files_sharing') 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) { -- cgit v1.2.3