diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2024-09-19 10:25:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-19 10:25:06 +0200 |
commit | a0cb795f043e27a1ef2f438f655efe690311a9b2 (patch) | |
tree | e7a56364223cf3fb44b683e2e3e3d29d3c9c0082 /lib | |
parent | 854d54dedfec5c74d405fef921b32a9d7564ed4a (diff) | |
parent | 0af0bf3d4226eada7278208cb3a80e68e055ec3d (diff) | |
download | nextcloud-server-a0cb795f043e27a1ef2f438f655efe690311a9b2.tar.gz nextcloud-server-a0cb795f043e27a1ef2f438f655efe690311a9b2.zip |
Merge pull request #48162 from nextcloud/bugfix/noid/array-keys
fix(autocomplete): Move known array keys to psalm docs
Diffstat (limited to 'lib')
-rw-r--r-- | lib/public/Collaboration/AutoComplete/IManager.php | 2 | ||||
-rw-r--r-- | lib/public/Collaboration/AutoComplete/ISorter.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/public/Collaboration/AutoComplete/IManager.php b/lib/public/Collaboration/AutoComplete/IManager.php index 33b4ae0566b..976bbfb7f18 100644 --- a/lib/public/Collaboration/AutoComplete/IManager.php +++ b/lib/public/Collaboration/AutoComplete/IManager.php @@ -20,7 +20,7 @@ interface IManager { /** * @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{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); |