diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2024-09-23 17:52:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-23 17:52:01 +0200 |
commit | e4524334fa2ba49089961d16dee8271a85080326 (patch) | |
tree | c32ed7596f98e598759a5c89506c1884a1af8989 /lib | |
parent | 8383be8f67a50c6c0ccea0632aa0010790d526cd (diff) | |
parent | 9a91a604140652574991e1cc49784817b2fec3a0 (diff) | |
download | nextcloud-server-e4524334fa2ba49089961d16dee8271a85080326.tar.gz nextcloud-server-e4524334fa2ba49089961d16dee8271a85080326.zip |
Merge pull request #48299 from nextcloud/backport/48162/stable30
[stable30] fix(autocomplete): Move known array keys to psalm docs
Diffstat (limited to 'lib')
-rw-r--r-- | lib/public/Collaboration/AutoComplete/IManager.php | 6 | ||||
-rw-r--r-- | lib/public/Collaboration/AutoComplete/ISorter.php | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/public/Collaboration/AutoComplete/IManager.php b/lib/public/Collaboration/AutoComplete/IManager.php index cc586b92d7d..55a1fe5cec3 100644 --- a/lib/public/Collaboration/AutoComplete/IManager.php +++ b/lib/public/Collaboration/AutoComplete/IManager.php @@ -18,9 +18,9 @@ interface IManager { public function registerSorter($className); /** - * @param array $sorters list of sorter IDs, separated by "|" - * @param array $sortArray array representation of OCP\Collaboration\Collaborators\ISearchResult - * @param array $context context info of the search, keys: itemType, itemId + * @param array $sorters list of sorter IDs, separated by "|" + * @param array $sortArray array representation of OCP\Collaboration\Collaborators\ISearchResult + * @param array{itemType: string, itemId: string, search?: string} $context context info of the search * @since 13.0.0 */ public function runSorters(array $sorters, array &$sortArray, array $context); diff --git a/lib/public/Collaboration/AutoComplete/ISorter.php b/lib/public/Collaboration/AutoComplete/ISorter.php index 772b1f9c6b9..4b9f2b72e7c 100644 --- a/lib/public/Collaboration/AutoComplete/ISorter.php +++ b/lib/public/Collaboration/AutoComplete/ISorter.php @@ -23,7 +23,7 @@ interface ISorter { * executes the sort action * * @param array $sortArray the array to be sorted, provided as reference - * @param array $context carries key 'itemType' and 'itemId' of the source object (e.g. a file) + * @param array{itemType: string, itemId: string, search?: string} $context carries key 'itemType' and 'itemId' of the source object (e.g. a file) * @since 13.0.0 */ public function sort(array &$sortArray, array $context); |