We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ce2cf1 commit 21b237fCopy full SHA for 21b237f
apps/dav/lib/CardDAV/AddressBookImpl.php
@@ -66,7 +66,7 @@ public function __construct(
66
* @since 5.0.0
67
*/
68
public function getKey() {
69
- return $this->addressBookInfo['id'];
+ return (string) $this->addressBookInfo['id'];
70
}
71
72
/**
apps/dav/tests/unit/CardDAV/AddressBookImplTest.php
@@ -67,7 +67,8 @@ protected function setUp(): void {
public function testGetKey(): void {
- $this->assertSame($this->addressBookInfo['id'],
+ $this->assertIsString($this->addressBookImpl->getKey());
+ $this->assertSame((string) $this->addressBookInfo['id'],
$this->addressBookImpl->getKey());
73
74
0 commit comments