Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/public/Files/Search/ISearchQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function limitToHome(): bool;
/**
* The fields to include in the search results
*
* @return list<string>
* @return array

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that sounds wrong. the new type is less strict

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error is:

Error: lib/private/Files/Search/SearchQuery.php:98:37: MoreSpecificReturnType: The declared return type 'list<string>' for OC\Files\Search\SearchQuery::getSelectFields is more specific than the inferred return type 'array<array-key, mixed>' (see https://psalm.dev/070)

Not sure what would be the best solution for that, it is not an issue in more recent versions as the return property is typed slightly differently

* @since 33.0.6
*/
public function getSelectFields(): array;
Expand Down
Loading