diff options
author | Joas Schilling <coding@schilljs.com> | 2021-12-08 18:53:54 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-12-08 19:24:16 +0100 |
commit | d5cb5a33dc5d09e7cef3b88e3f55240ef3384df2 (patch) | |
tree | 11070b1768827b120bd1365b4f917a8bf5c8acf2 /apps/dav/lib | |
parent | d49ad7ea47e35a463e4953c9922a5af77ff7acf2 (diff) | |
download | nextcloud-server-d5cb5a33dc5d09e7cef3b88e3f55240ef3384df2.tar.gz nextcloud-server-d5cb5a33dc5d09e7cef3b88e3f55240ef3384df2.zip |
Convert strict_search to wildcard property and add psalm docs
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/dav/lib')
-rw-r--r-- | apps/dav/lib/CardDAV/AddressBookImpl.php | 1 | ||||
-rw-r--r-- | apps/dav/lib/CardDAV/CardDavBackend.php | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/apps/dav/lib/CardDAV/AddressBookImpl.php b/apps/dav/lib/CardDAV/AddressBookImpl.php index 1b74f329f1f..3db20cb4220 100644 --- a/apps/dav/lib/CardDAV/AddressBookImpl.php +++ b/apps/dav/lib/CardDAV/AddressBookImpl.php @@ -108,6 +108,7 @@ class AddressBookImpl implements IAddressBook { * - 'limit' - Set a numeric limit for the search results * - 'offset' - Set the offset for the limited search results * - 'wildcard' - Whether the search should use wildcards + * @psalm-param array{types?: bool, escape_like_param?: bool, limit?: int, offset?: int, wildcard?: bool} $options * @return array an array of contacts which are arrays of key-value-pairs * example result: * [ diff --git a/apps/dav/lib/CardDAV/CardDavBackend.php b/apps/dav/lib/CardDAV/CardDavBackend.php index 403c4646e47..3e360fb2e41 100644 --- a/apps/dav/lib/CardDAV/CardDavBackend.php +++ b/apps/dav/lib/CardDAV/CardDavBackend.php @@ -1025,6 +1025,7 @@ class CardDavBackend implements BackendInterface, SyncSupport { * - 'limit' - Set a numeric limit for the search results * - 'offset' - Set the offset for the limited search results * - 'wildcard' - Whether the search should use wildcards + * @psalm-param array{escape_like_param?: bool, limit?: int, offset?: int, wildcard?: bool} $options * @return array an array of contacts which are arrays of key-value-pairs */ public function search($addressBookId, $pattern, $searchProperties, $options = []): array { @@ -1056,6 +1057,7 @@ class CardDavBackend implements BackendInterface, SyncSupport { * @param string $pattern * @param array $searchProperties * @param array $options + * @psalm-param array{types?: bool, escape_like_param?: bool, limit?: int, offset?: int, wildcard?: bool} $options * @return array */ private function searchByAddressBookIds(array $addressBookIds, |