chore: add strict types in IAddressBook::getKey

Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
This commit is contained in:
Benjamin Gaussorgues 2026-06-10 11:17:21 +02:00 committed by Côme Chilliet
parent a07634e383
commit a8fb722b0e
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A
2 changed files with 4 additions and 2 deletions

View file

@ -41,9 +41,10 @@ class AddressBookImpl implements IAddressBookEnabled, ICreateContactFromString {
/**
* @return string defining the technical unique key
* @since 5.0.0
* @since 35.0.0 Typed return type
*/
#[\Override]
public function getKey() {
public function getKey(): string {
return (string)$this->addressBookInfo['id'];
}

View file

@ -18,8 +18,9 @@ namespace OCP {
/**
* @return string defining the technical unique key
* @since 5.0.0
* @since 35.0.0 Typed return type
*/
public function getKey();
public function getKey(): string;
/**
* @return string defining the unique uri