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.
2 parents 5ce2cf1 + 21b237f commit 65250e5Copy full SHA for 65250e5
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