Skip to content

Commit 726d1ad

Browse files
committed
userbackend return type fixes
Signed-off-by: Robin Appelman <[email protected]>
1 parent df37219 commit 726d1ad

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

lib/Storage/DirMask.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ public function getPermissions($path): int {
100100
}
101101
}
102102

103+
/**
104+
* @psalm-suppress ParamNameMismatch
105+
*/
103106
public function rename($source, $target): bool {
104107
if (!$this->isUpdatable($source)) {
105108
return false;
@@ -119,7 +122,10 @@ public function rename($source, $target): bool {
119122
}
120123
return false;
121124
}
122-
125+
126+
/**
127+
* @psalm-suppress ParamNameMismatch
128+
*/
123129
public function copy($source, $target): bool {
124130
if (!$this->isReadable($source)) {
125131
return false;

lib/UserBackend.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public function getDisplayNames($search = '', $limit = null, $offset = null): ar
247247
/**
248248
* Check if the password is correct
249249
*
250-
* @return string|bool
250+
* @return string|false
251251
*
252252
* Check if the password is correct without logging in the user
253253
* returns the user id or false
@@ -377,7 +377,7 @@ public function hasUserListings() {
377377
/**
378378
* counts the users in the database
379379
*
380-
* @return int|bool
380+
* @return int|false
381381
*/
382382
public function countUsers() {
383383
$query = $this->dbConn->getQueryBuilder();

0 commit comments

Comments
 (0)