mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
fix(carddav): IAddressBook::getKey() should return a string
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
This commit is contained in:
parent
5ab16f46f9
commit
caf664ea43
2 changed files with 3 additions and 2 deletions
|
|
@ -41,7 +41,7 @@ class AddressBookImpl implements IAddressBookEnabled {
|
|||
* @since 5.0.0
|
||||
*/
|
||||
public function getKey() {
|
||||
return $this->addressBookInfo['id'];
|
||||
return (string)$this->addressBookInfo['id'];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -53,7 +53,8 @@ class AddressBookImplTest extends TestCase {
|
|||
}
|
||||
|
||||
public function testGetKey(): void {
|
||||
$this->assertSame($this->addressBookInfo['id'],
|
||||
$this->assertIsString($this->addressBookImpl->getKey());
|
||||
$this->assertSame((string)$this->addressBookInfo['id'],
|
||||
$this->addressBookImpl->getKey());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue