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 5ab16f4 commit caf664eCopy full SHA for caf664e
apps/dav/lib/CardDAV/AddressBookImpl.php
@@ -41,7 +41,7 @@ public function __construct(
41
* @since 5.0.0
42
*/
43
public function getKey() {
44
- return $this->addressBookInfo['id'];
+ return (string)$this->addressBookInfo['id'];
45
}
46
47
/**
apps/dav/tests/unit/CardDAV/AddressBookImplTest.php
@@ -53,7 +53,8 @@ protected function setUp(): void {
53
54
55
public function testGetKey(): void {
56
- $this->assertSame($this->addressBookInfo['id'],
+ $this->assertIsString($this->addressBookImpl->getKey());
57
+ $this->assertSame((string)$this->addressBookInfo['id'],
58
$this->addressBookImpl->getKey());
59
60
0 commit comments