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 3cc15e3 + 06ab1f2 commit 7ffa256Copy full SHA for 7ffa256
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
@@ -67,7 +67,8 @@ protected function setUp(): void {
67
68
69
public function testGetKey(): void {
70
- $this->assertSame($this->addressBookInfo['id'],
+ $this->assertIsString($this->addressBookImpl->getKey());
71
+ $this->assertSame((string)$this->addressBookInfo['id'],
72
$this->addressBookImpl->getKey());
73
74
0 commit comments