Skip to content

Commit

Permalink
fix: return type doc block added as per psalm
Browse files Browse the repository at this point in the history
Signed-off-by: yemkareems <yemkareems@gmail.com>
  • Loading branch information
yemkareems committed Jul 4, 2024
1 parent 0164f5e commit abd2441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/AllConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ public function getUsersForUserValue($appName, $key, $value) {
* @param int|null $limit how many users to fetch
* @param int $offset from which offset to fetch
* @param string $search search users based on search params
* @return array of user IDs
* @return list<string> list of user IDs

Check failure on line 500 in lib/private/AllConfig.php

View workflow job for this annotation

GitHub Actions / static-code-analysis

MoreSpecificReturnType

lib/private/AllConfig.php:500:13: MoreSpecificReturnType: The declared return type 'list<string>' for OC\AllConfig::getLastLoggedInUsers is more specific than the inferred return type 'array<array-key, mixed>' (see https://psalm.dev/070)

Check failure

Code scanning / Psalm

MoreSpecificReturnType Error

The declared return type 'list' for OC\AllConfig::getLastLoggedInUsers is more specific than the inferred return type 'array<array-key, mixed>'
*/
public function getLastLoggedInUsers(?int $limit = null, int $offset = 0, string $search = ''): array {
// TODO - FIXME
Expand Down

0 comments on commit abd2441

Please sign in to comment.