Merge pull request #29671 from nextcloud/backport/29660/stable23

[stable23] Fix initialization of calendar search URIs
This commit is contained in:
Christoph Wurst 2021-11-15 09:52:24 +01:00 committed by GitHub
commit bf5c89bbdd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,8 +47,8 @@ class CalendarQuery implements ICalendarQuery {
/** @var int|null */
private $limit;
/** @var array */
private $calendarUris;
/** @var string[] */
private $calendarUris = [];
public function __construct(string $principalUri) {
$this->principalUri = $principalUri;
@ -86,6 +86,9 @@ class CalendarQuery implements ICalendarQuery {
$this->calendarUris[] = $calendarUri;
}
/**
* @return string[]
*/
public function getCalendarUris(): array {
return $this->calendarUris;
}