Skip to content

Commit be6e4ff

Browse files
committed
fix: Return type error after #60844
1 parent e5c479c commit be6e4ff

1 file changed

Lines changed: 50 additions & 48 deletions

File tree

lib/public/Files/Search/ISearchQuery.php

Lines changed: 50 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -4,65 +4,67 @@
44
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
55
* SPDX-License-Identifier: AGPL-3.0-or-later
66
*/
7+
78
namespace OCP\Files\Search;
89

910
use OCP\IUser;
1011

1112
/**
1213
* @since 12.0.0
1314
*/
14-
interface ISearchQuery {
15-
/**
16-
* @return ISearchOperator
17-
* @since 12.0.0
18-
*/
19-
public function getSearchOperation();
15+
interface ISearchQuery
16+
{
17+
/**
18+
* @return ISearchOperator
19+
* @since 12.0.0
20+
*/
21+
public function getSearchOperation();
2022

21-
/**
22-
* Get the maximum number of results to return
23-
*
24-
* @return integer
25-
* @since 12.0.0
26-
*/
27-
public function getLimit();
23+
/**
24+
* Get the maximum number of results to return
25+
*
26+
* @return integer
27+
* @since 12.0.0
28+
*/
29+
public function getLimit();
2830

29-
/**
30-
* Get the offset for returned results
31-
*
32-
* @return integer
33-
* @since 12.0.0
34-
*/
35-
public function getOffset();
31+
/**
32+
* Get the offset for returned results
33+
*
34+
* @return integer
35+
* @since 12.0.0
36+
*/
37+
public function getOffset();
3638

37-
/**
38-
* The fields and directions to order by
39-
*
40-
* @return ISearchOrder[]
41-
* @since 12.0.0
42-
*/
43-
public function getOrder();
39+
/**
40+
* The fields and directions to order by
41+
*
42+
* @return ISearchOrder[]
43+
* @since 12.0.0
44+
*/
45+
public function getOrder();
4446

45-
/**
46-
* The user that issued the search
47-
*
48-
* @return ?IUser
49-
* @since 12.0.0
50-
*/
51-
public function getUser();
47+
/**
48+
* The user that issued the search
49+
*
50+
* @return ?IUser
51+
* @since 12.0.0
52+
*/
53+
public function getUser();
5254

53-
/**
54-
* Whether or not the search should be limited to the users home storage
55-
*
56-
* @return bool
57-
* @since 18.0.0
58-
*/
59-
public function limitToHome(): bool;
55+
/**
56+
* Whether or not the search should be limited to the users home storage
57+
*
58+
* @return bool
59+
* @since 18.0.0
60+
*/
61+
public function limitToHome(): bool;
6062

61-
/**
62-
* The fields to include in the search results
63-
*
64-
* @return list<string>
65-
* @since 33.0.6
66-
*/
67-
public function getSelectFields(): array;
63+
/**
64+
* The fields to include in the search results
65+
*
66+
* @return array
67+
* @since 33.0.6
68+
*/
69+
public function getSelectFields(): array;
6870
}

0 commit comments

Comments
 (0)