mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 06:08:46 -04:00
Fix checkpassword undocummented null parameter
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
parent
c6b8a3bec3
commit
60313683e2
3 changed files with 5 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue