mirror of
https://github.com/nextcloud/server.git
synced 2026-06-15 19:49:38 -04:00
chore: add strict types in IAddressBook::getKey
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
This commit is contained in:
parent
a07634e383
commit
a8fb722b0e
2 changed files with 4 additions and 2 deletions
|
|
@ -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'];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue