Fix checkpassword undocummented null parameter

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
Carl Schwan 2022-10-17 12:38:21 +02:00
parent c6b8a3bec3
commit 60313683e2
3 changed files with 5 additions and 5 deletions

View file

@ -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) {

View file

@ -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) {

View file

@ -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
*/