summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-10-17 12:38:21 +0200
committerCarl Schwan <carl@carlschwan.eu>2022-10-17 12:38:21 +0200
commit60313683e2cf9ccd523700b4dd848a6c2c8df03f (patch)
treecdeccc7d196934e58f1fe05817248e8c78c50ee2
parentc6b8a3bec34e882aa7c19b2d65d18fd7e29009b1 (diff)
downloadnextcloud-server-60313683e2cf9ccd523700b4dd848a6c2c8df03f.tar.gz
nextcloud-server-60313683e2cf9ccd523700b4dd848a6c2c8df03f.zip
Fix checkpassword undocummented null parameter
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
-rw-r--r--apps/files_sharing/lib/Controller/ShareInfoController.php6
-rw-r--r--lib/private/Share20/Manager.php2
-rw-r--r--lib/public/Share/IManager.php2
3 files changed, 5 insertions, 5 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) {
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php
index 2ef61cf3404..ffd779707df 100644
--- a/lib/private/Share20/Manager.php
+++ b/lib/private/Share20/Manager.php
@@ -1562,7 +1562,7 @@ class Manager implements IManager {
* Verify the password of a public share
*
* @param IShare $share
- * @param string $password
+ * @param ?string $password
* @return bool
*/
public function checkPassword(IShare $share, $password) {
diff --git a/lib/public/Share/IManager.php b/lib/public/Share/IManager.php
index 0810acc673a..82a92428b31 100644
--- a/lib/public/Share/IManager.php
+++ b/lib/public/Share/IManager.php
@@ -211,7 +211,7 @@ interface IManager {
* Verify the password of a public share
*
* @param IShare $share
- * @param string $password
+ * @param ?string $password
* @return bool
* @since 9.0.0
*/